Skip to content

Merge pull request #89 from TomTonic/renovate/golang.org-x-sys-0.x #238

Merge pull request #89 from TomTonic/renovate/golang.org-x-sys-0.x

Merge pull request #89 from TomTonic/renovate/golang.org-x-sys-0.x #238

Workflow file for this run

name: Test Coverage
on: [push]
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- name: Run tests and generate coverage report
run: go test ./ -coverprofile=./cover.out -covermode=atomic -coverpkg=./
- name: Generate coverage badge
uses: vladopajic/go-test-coverage@a93b868a4cbcbf18dc3781650fad241f0020e609 # v2.18.8
with:
profile: cover.out
local-prefix: github.com/TomTonic/rtcompare
threshold-total: 85
git-branch: badges
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}