-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 637 Bytes
/
coverage.yml
File metadata and controls
35 lines (30 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
coverage:
if: github.server_url == 'https://github.com'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Coverage
uses: gwatts/go-coverage-action@v2
with:
coverage-threshold: 0
cover-pkg: ./...
fail-coverage: never