Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
bonkzero404 committed Jan 18, 2024
1 parent 0d2f9ad commit 8167300
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,20 @@ on:
branches: ["main"]

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: codecov/codecov-action@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"

- name: Test
run: go test -v ./...

coverage:
runs-on: ubuntu-latest
steps:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
make test
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
bash <(curl -s https://codecov.io/bash)

0 comments on commit 8167300

Please sign in to comment.