mirror of https://github.com/gabehf/go-elo.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
580 B
22 lines
580 B
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
|