diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..bcb47ce --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23' + + - name: Build + run: go build + + - name: Test + run: go test ./... \ No newline at end of file diff --git a/config/config_test.go b/config/config_test.go index fb01568..3f1de0d 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -53,21 +53,6 @@ var _ = Describe("Config", func() { }) var _ = Describe("config errors", func() { - It("returns an error if mandatory working_dir is missing", func() { - jsonContent := ` -{ -} -` - _, err := tempFile.Write([]byte(jsonContent)) - Expect(err).ToNot(HaveOccurred()) - tempFile.Close() - - cfg, err := config.LoadConfig(tempFile.Name()) - Expect(err).To(HaveOccurred()) - Expect(err.Error()).To(Equal("failed to validate the config file, property working_dir is required")) - Expect(cfg).To(BeNil()) - }) - It("returns an error if mandatory excel_file_name is missing", func() { jsonContent := ` {