Skip to content

Commit

Permalink
Merge pull request #157 from strideynet/strideynet/codecov-go
Browse files Browse the repository at this point in the history
Add code coverage for Go
  • Loading branch information
strideynet authored Aug 22, 2023
2 parents 6167520 + a223252 commit 77c4d99
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ on:
pull_request:

jobs:
go-unit:
go:
services:
dind:
image: docker:23.0-rc-dind-rootless
ports:
- 2375:2375
name: "Go: Unit Tests"
name: "Go: Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Test
run: go test -race -v ./...
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
- name: Upload coverage
uses: codecov/codecov-action@v3

1 comment on commit 77c4d99

@vercel
Copy link

@vercel vercel bot commented on 77c4d99 Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.