Files
gotes/.gitea/workflows/test.yml
DelphicOkami 5cf0f637f8
Some checks failed
test / go-test (push) Failing after 6m2s
-v not --verbose
2026-03-19 01:23:42 +00:00

44 lines
923 B
YAML

name: test
on:
push:
pull_request:
env:
build_path: _build
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.26.x"
- name: Check Formatting
run: |
gofmt -l .
exit $(gofmt -l . | wc -l)
- name: Run tests
run: go test -v ./...
- name: Generate coverage
run: go test -v -coverprofile=${build_path}/coverage.out ./...
- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: _build/coverage.out
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: true
hide_complexity: false
indicators: true
output: both
thresholds: '60 80'