From f9c2e9c1fd0ba73607be1f906c14832d9e4c9770 Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Sat, 16 Mar 2024 00:40:39 +0000 Subject: [PATCH] Add go test workflow + badge --- .github/workflows/go.yml | 25 +++++++++++++++++++++++++ README.md | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..0013b3b --- /dev/null +++ b/.github/workflows/go.yml @@ -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 ./... diff --git a/README.md b/README.md index 4b90f83..7fab765 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ Note: This package is currently under active development and may have significan # 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.