Skip to content

Commit

Permalink
update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
b97tsk committed Sep 2, 2023
1 parent 3602778 commit bfebcb9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ on:
paths:
- '**.go'
jobs:
test:
build:
name: Test with coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.19'
go-version: '1.21'
- name: Run tests
run: go test -race -coverprofile=coverage.txt -coverpkg=./... ./...
run: go test -race -coverprofile=profile.cov -coverpkg=./... ./...
- name: Send coverage
uses: codecov/codecov-action@v3
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov

0 comments on commit bfebcb9

Please sign in to comment.