Skip to content

Commit

Permalink
Split test and race tests
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Koch <[email protected]>
  • Loading branch information
hugelgupf committed Jan 19, 2024
1 parent 9be0667 commit a64e72f
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,28 @@ jobs:
- name: Test
run: go test -v -covermode atomic -coverpkg ./... -coverprofile cover.out ./...

- name: Race
run: go test -race -timeout 15m -v ./...

- uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: '804457b0-03f8-4cf6-bc99-eaf43399177b'
with:
flags: ${{ matrix.platform }}-unit
fail_ci_if_error: true
verbose: true

race:
name: Race test
strategy:
matrix:
go-version: ['1.21.x']
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Race
run: go test -race -v ./...

0 comments on commit a64e72f

Please sign in to comment.