mirror of https://github.com/gabehf/go-elo.git
parent
09e816b58a
commit
39eee32cfb
@ -0,0 +1,21 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
coverage:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
|
||||
- name: generate test coverage
|
||||
run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
|
||||
|
||||
- name: check test coverage
|
||||
uses: vladopajic/go-test-coverage@v2
|
||||
with:
|
||||
profile: cover.out
|
||||
local-prefix: github.com/gabehf/go-elo
|
||||
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
|
||||
git-branch: badges
|
||||
Loading…
Reference in new issue