add gitea workflow for quality

This commit is contained in:
2025-11-20 11:46:59 +00:00
parent 34e66307de
commit a9406cff13
2 changed files with 31 additions and 15 deletions

View File

@@ -0,0 +1,31 @@
name: Quality
on: [push]
jobs:
test:
name: Test with Coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.25'
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies
run: |
go mod download
- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=coverage.out ./...
- name: Install goveralls
run: go install github.com/mattn/goveralls@v0.0.12
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}}
run: goveralls -coverprofile=coverage.out -service=github