Poindexter/.github/workflows/test.yml
copilot-swe-agent[bot] 94aeaf4730 Fix GitHub Actions permissions for test workflow
Co-authored-by: Snider <631881+Snider@users.noreply.github.com>
2025-11-03 15:40:12 +00:00

33 lines
595 B
YAML

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run tests
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: ./coverage.txt
fail_ci_if_error: false