Add go test workflow + badge

main
Gabe Farrell 2 years ago
parent cfcfd9362c
commit f9c2e9c1fd

@ -0,0 +1,25 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.x'
- name: Test
run: go test -v ./...

@ -2,7 +2,8 @@ Note: This package is currently under active development and may have significan
# go-elo: A flexible elo calculator for Go # go-elo: A flexible elo calculator for Go
![coverage](https://raw.githubusercontent.com/gabehf/go-elo/badges/.badges/main/coverage.svg) ![coverage](https://raw.githubusercontent.com/gabehf/go-elo/badges/.badges/main/coverage.svg) ![coverage](https://github.com/gabehf/go-elo/actions/workflows/go.yml/badge.svg)
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.

Loading…
Cancel
Save