-
Notifications
You must be signed in to change notification settings - Fork 23
48 lines (39 loc) · 934 Bytes
/
test.yaml
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
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Checkout repo
uses: actions/[email protected]
with:
submodules: recursive
- name: Set up Go
uses: actions/[email protected]
with:
go-version: ^1
- name: Update root cache
run: go generate -v -x
- name: Vet Go code
run: go vet ./...
- name: govulncheck
uses: golang/[email protected]
with:
cache: false
repo-checkout: false
- name: Run flaky test
env:
DNSR_DEBUG: 1
run: go test -v -race ./... -run UK
- name: Test Go code
env:
DNSR_TIMEOUT: 5s
run: go test -v -race ./...
- name: Verify repo is unchanged
run: git diff --exit-code HEAD