-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (36 loc) · 968 Bytes
/
build-test.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
42
43
name: 🔨 Build Test
on:
pull_request:
workflow_dispatch:
jobs:
build:
name: Test Builds
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest-16-cores, windows-latest-8-cores, macOS-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: go build ./...
working-directory: v2/
- name: Run tests
uses: nick-invision/retry@v2
with:
timeout_seconds: 360
max_attempts: 3
command: cd v2; go test ./... -v
- name: Integration Tests
env:
GH_ACTION: true
DNSREPO_API_KEY: ${{secrets.DNSREPO_API}}
run: bash run.sh
working-directory: v2/cmd/integration-test/
- name: Race Condition Tests
run: go build -race ./...
working-directory: v2/