Skip to content

Commit 8167300

Browse files
committed
Update action
1 parent 0d2f9ad commit 8167300

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/go.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,20 @@ on:
1010
branches: ["main"]
1111

1212
jobs:
13-
build:
13+
test:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17+
- uses: actions/setup-go@v4
18+
- uses: codecov/codecov-action@v3
1719

18-
- name: Set up Go
19-
uses: actions/setup-go@v4
2020
with:
2121
go-version: "1.20"
2222

2323
- name: Test
24-
run: go test -v ./...
25-
26-
coverage:
27-
runs-on: ubuntu-latest
28-
steps:
29-
- name: Upload coverage reports to Codecov
30-
uses: codecov/codecov-action@v3
3124
env:
3225
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
26+
run: |
27+
make test
28+
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
29+
bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)