-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (39 loc) · 1002 Bytes
/
coverage.yaml
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
36
37
38
39
40
41
42
43
name: coverage
concurrency:
group: coverage-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ main ]
jobs:
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- strings/bexp
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21.5'
- uses: actions/checkout@v4
- name: generate coverage
working-directory: ./${{ matrix.package }}
run: go test -coverpkg=./... -coverprofile=coverage.out ./...
- name: upload coverage
uses: coverallsapp/github-action@v2
with:
flag-name: ${{ matrix.package }}
parallel: true
github-token: ${{ secrets.GITHUB_TOKEN }}
finish:
needs: coverage
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "strings/bexp"