-
Notifications
You must be signed in to change notification settings - Fork 80
51 lines (43 loc) · 1.15 KB
/
Copy pathgo.yml
File metadata and controls
51 lines (43 loc) · 1.15 KB
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
49
50
51
name: Go
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- "1.17"
- "1.20"
- "1.22"
- "1.23"
- "1.24"
- "1.25"
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -bench=. -coverprofile=coverage.txt ./...
env:
GODEBUG: asynctimerchan=0
- name: Test with deadlock_disable tag
run: go test -v -tags=deadlock_disable ./...
- name: Test with goexperiment.synctest tag (Go 1.24+)
if: matrix.go == '1.24' || matrix.go == '1.25'
run: go test -v -tags=goexperiment.synctest ./...
env:
GODEBUG: asynctimerchan=0
- name: Test with deadlock_synctest tag (Go 1.25+)
if: matrix.go == '1.25'
run: go test -v -tags=deadlock_synctest ./...
env:
GODEBUG: asynctimerchan=0