-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) Β· 1.17 KB
/
check.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
###
## Unit Tests & Coverage
##
name: check
on:
pull_request:
types:
- opened
- synchronize
jobs:
unit:
runs-on: ubuntu-latest
strategy:
matrix:
module: [".", "x/awsapi", "x/xhtml"]
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- uses: actions/checkout@v4
- name: go build
working-directory: ${{ matrix.module }}
run: |
go build ./...
- name: go test
working-directory: ${{ matrix.module }}
run: |
go test -coverprofile=profile.cov $(go list ./... | grep -v /examples/)
- uses: shogo82148/actions-goveralls@v1
continue-on-error: true
with:
working-directory: ${{ matrix.module }}
path-to-profile: profile.cov
flag-name: ${{ matrix.module }}
parallel: true
- uses: dominikh/staticcheck-action@v1.3.0
with:
install-go: false
working-directory: ${{ matrix.module }}
finish:
needs: unit
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true