-
-
Notifications
You must be signed in to change notification settings - Fork 45
27 lines (27 loc) · 896 Bytes
/
tests.yml
File metadata and controls
27 lines (27 loc) · 896 Bytes
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
name: Tests
on:
push:
branches:
- $default-branch
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: "1.21"
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Test
run: go test -v -race -coverpkg=./... -coverprofile=coverage.txt ./...
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
go-generate:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: "1.21"
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: go generate ./...
- name: Check go generate diff
run: (! git diff | grep '^') # check diff