...
1on: [push, pull_request]
2name: Test Go
3permissions:
4 contents: read
5jobs:
6 test:
7 strategy:
8 matrix:
9 go-version: [1.19.x, 1.20.x]
10 os: [ubuntu-latest, macos-latest]
11 runs-on: ${{ matrix.os }}
12 steps:
13 - uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
14 with:
15 go-version: ${{ matrix.go-version }}
16 - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.1.0
17 - run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
18 - uses: codecov/codecov-action@894ff025c7b54547a9a2a1e9f228beae737ad3c2 # v3.1.3
View as plain text