Skip to content

Commit

Permalink
github: update ci testing process
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlettman committed Jul 15, 2024
1 parent 0f3adfb commit f876b49
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,18 @@ on:
jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [ '1.22.5' ]

steps:
- uses: actions/checkout@v2
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get .
- name: Test
go-version-file: go.mod
- name: Run Tests
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test -short -timeout 120s -race -count 1 -v ./... 2>&1 | go-junit-report -set-exit-code -iocopy -out "${{ github.workspace }}/report.xml"
- name: Test summary
uses: test-summary/action@v2
with:
paths: |
${{ github.workspace }}/report.xml
if: always()
go install github.com/jstemmer/go-junit-report@latest
go test -v ./... | go-junit-report -set-exit-code > report.xml
- name: Summarize Tests
uses: test-summary/action@v1
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down

0 comments on commit f876b49

Please sign in to comment.