Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
itaispiegel committed May 20, 2024
1 parent 6f638f1 commit afb3714
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
with:
go-version-file: user/go.mod
cache: false
- run: apt install -y bison
- run: go generate -v ./...
working-directory: user
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/user-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
with:
go-version-file: user/go.mod
cache: false
- run: apt install -y bison
- run: go generate -v ./...
working-directory: user
- name: Run unit tests
run: go test -v ./...
working-directory: user
3 changes: 2 additions & 1 deletion user/cparser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ func TestParser(t *testing.T) {
expectedParserStatus := CParserResult{}
parserStatusBytes, err := os.ReadFile(parserStatusPath)
assert.NoError(t, err)
yaml.Unmarshal(parserStatusBytes, &expectedParserStatus)
err = yaml.Unmarshal(parserStatusBytes, &expectedParserStatus)
assert.NoError(t, err)

actualParserStatus := Parse(string(input))
assert.Equal(t, expectedParserStatus, actualParserStatus, "Test case '%s' failed", testName)
Expand Down

0 comments on commit afb3714

Please sign in to comment.