mirror of
https://github.com/gabehf/go-elo.git
synced 2026-03-07 13:38:12 -08:00
Add coverage workflow
This commit is contained in:
parent
09e816b58a
commit
39eee32cfb
2 changed files with 23 additions and 0 deletions
21
.github/workflows/main.yml
vendored
Normal file
21
.github/workflows/main.yml
vendored
Normal file
|
|
@ -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
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
# go-elo: A flexible elo calculator for Go
|
# go-elo: A flexible elo calculator for Go
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
This package allows you to add flexible elo/skill tracking to your application.
|
This package allows you to add flexible elo/skill tracking to your application.
|
||||||
|
|
||||||
Go-elo supports unscored (win/loss) and scored matches, with options to tailor the elo curve to your liking.
|
Go-elo supports unscored (win/loss) and scored matches, with options to tailor the elo curve to your liking.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue