Compare commits

...

2 Commits

Author SHA1 Message Date
be2c327e8c set project go version to v1.25
All checks were successful
Quality / Test with Coverage (push) Successful in 1m14s
2025-11-20 11:47:41 +00:00
a9406cff13 add gitea workflow for quality 2025-11-20 11:46:59 +00:00
3 changed files with 32 additions and 16 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

View File

@@ -1,15 +0,0 @@
image: golang:latest
stages:
- test
format:
stage: test
script:
- go fmt gitlab.com/naterciom/gubgub
- go vet gitlab.com/naterciom/gubgub
- go test -race -cover gitlab.com/naterciom/gubgub
coverage: '/coverage: \d+.\d+% of statements/'

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/nmoniz/gubgub module github.com/nmoniz/gubgub
go 1.24 go 1.25
require github.com/stretchr/testify v1.9.0 require github.com/stretchr/testify v1.9.0