Skip to content

Commit

Permalink
ci(github): add unit tests to the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Gągor committed Dec 28, 2024
1 parent 193add8 commit d806fce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,16 @@ jobs:
./bin/*
args: -fq

- name: Unit Tests
run: |
go test -v ./...
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.build.outputs.binary }}
path: bin/*

test:
smoke-tests:
name: test on ${{ matrix.os }}
needs:
- build
Expand Down Expand Up @@ -151,7 +155,7 @@ jobs:
permissions: write-all
runs-on: ubuntu-latest
needs:
- test
- smoke-tests
- build
if: github.ref == 'refs/heads/main'
steps:
Expand Down

0 comments on commit d806fce

Please sign in to comment.