-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.1 KB
/
tests.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
name: Tests
on: [push]
jobs:
tests:
strategy:
matrix:
env:
- os: ubuntu-latest
coverage: true
- os: macos-latest
- os: windows-latest
continue-on-error: true
runs-on: ${{ matrix.env.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.23"
- uses: actions/checkout@v3
- run: go vet ./...
- run: |
set -x
PREFIX="github.com/${GITHUB_REPOSITORY}"
go test -v \
${{ matrix.env.coverage && '-coverprofile=profile.cov' }} \
$(
go list ./... \
| grep -v "${PREFIX}/cmd" \
| grep -v "${PREFIX}/testvectors" \
| grep -v "${PREFIX}/pkg/cinodefs/protobuf" \
)
continue-on-error: ${{ matrix.env['continue-on-error'] }}
- uses: shogo82148/actions-goveralls@v1
if: ${{ matrix.env.coverage }}
with:
path-to-profile: profile.cov
- uses: codecov/codecov-action@v3
if: ${{ matrix.env.coverage }}
with:
files: profile.cov