Skip to content

Commit

Permalink
improve ci
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Oct 10, 2024
1 parent 49ef6a5 commit 71a8d76
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,38 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
- name: Checkout
uses: actions/checkout@v4
- name: setup go

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: vet
run: go vet ./...
- name: build

- name: Go mod tidy
run: |
go mod tidy
git diff --exit-code || (echo "go.mod or go.sum is not clean! Run 'go mod tidy' and commit the changes." && exit 1)
- name: Go Vet
run: go vet ./go/...

- name: Build
run: make build
- name: test
run: make test

- name: Check formatting
run: |
make pretty
git diff --exit-code || (echo "Code is not formatted correctly! Run 'make pretty' and commit the changes." && exit 1)
- name: Run Tests
run: go test -v ./go/... | tee go-test.log
continue-on-error: true

- name: Annotate Test Failures
if: failure()
uses: dorny/test-reporter@v1
with:
name: go tests
path: report.xml
reporter: junit

0 comments on commit 71a8d76

Please sign in to comment.