1
0
Fork 0
golang-github-nicholas-fedo.../.github/workflows/test.yaml
Daniel Baumann bc0f764250
Merging upstream version 0.8.13.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-29 07:18:02 +02:00

32 lines
785 B
YAML

name: Run tests and upload coverage
on:
workflow_call:
permissions:
contents: read
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
with:
go-version: "1.24.3"
- name: Install dependencies
run: go mod download
- name: Run tests
run: |
go test -v -coverprofile coverage.out -covermode atomic ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@15559ed290fa727036809b67ab0f646ffa6c5158
with:
token: ${{ secrets.CODECOV_TOKEN }}