...
1name: test
2on:
3 push:
4 branches:
5 - master
6 pull_request:
7 branches:
8 - master
9jobs:
10 test:
11 strategy:
12 matrix:
13 os: [windows-latest, macos-latest, ubuntu-latest]
14 go:
15 - "1.15"
16 - "1.16"
17 - "1.17"
18 - "1.18"
19 - "1.19"
20 - "1.20"
21 runs-on: ${{ matrix.os }}
22 steps:
23 - uses: actions/checkout@v3
24 - uses: actions/setup-go@v4
25 with:
26 go-version: ${{ matrix.go }}
27
28 - run: go generate ./...
29 - run: git diff --cached --exit-code
30 - run: go test ./... -v -cover -coverprofile coverage.out
31 - run: go test -bench . -benchmem
32
33 - uses: codecov/codecov-action@v3
View as plain text