Skip to content

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
Add two new jobs for testing the unit and integration test in the
examples directory.

Signed-off-by: Jim Fitzpatrick <[email protected]>
  • Loading branch information
Boomatang committed Jul 30, 2024
1 parent d2c08a0 commit 68c799f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,43 @@ jobs:
path: |
tests/out/*
!tests/out/.gitkeep
examples-unit-tests:
name: Examples Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Test with the Go CLI
working-directory: ./examples
run: go test -tags=unit -v ./...
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: UnitTestsOutput
path: |
tests/out/*
!tests/out/.gitkeep
examples-intetration-tests:
name: Examples integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Test with the Go CLI
working-directory: ./examples
run: go test -tags=integration -v ./...
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: IntegrationTestsOutput
path: |
tests/out/*
!tests/out/.gitkeep

0 comments on commit 68c799f

Please sign in to comment.