-
-
Notifications
You must be signed in to change notification settings - Fork 320
83 lines (75 loc) · 2.09 KB
/
Copy pathconformance.yml
File metadata and controls
83 lines (75 loc) · 2.09 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Conformance
on:
push:
branches:
- main
paths:
- ".github/workflows/conformance.yml"
- "conformance/**"
- "cmd/**"
- "go.mod"
- "go.sum"
- "internal/**"
- "Makefile"
- "specs/**"
pull_request:
# Keep this workflow directly rerunnable from PR-only maintenance commits.
types:
- opened
- reopened
- synchronize
- ready_for_review
paths:
- ".github/workflows/conformance.yml"
- "conformance/**"
- "cmd/**"
- "go.mod"
- "go.sum"
- "internal/**"
- "Makefile"
- "specs/**"
workflow_dispatch:
permissions:
contents: read
env:
GO_VERSION: "1.26.5"
jobs:
conformance:
name: Conformance tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
go_test_flags: "-v --race"
- os: windows-latest
go_test_flags: "-v"
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Install GNU Make
if: runner.os == 'Windows'
shell: pwsh
run: |
if (-not (Get-Command make -ErrorAction SilentlyContinue)) {
choco install make --no-progress -y
}
# Conformance fixtures spawn Windows PowerShell (powershell.exe) under a
# bounded command-substitution timeout. The first spawn on a fresh runner
# pays a JIT/antivirus penalty that can exceed the timeout, so pay it here
# instead of inside a test.
- name: Warm up Windows PowerShell
if: runner.os == 'Windows'
shell: powershell
run: Write-Output warmup
- name: Run conformance tests
shell: bash
run: make conformance GO_TEST_FLAGS="${{ matrix.go_test_flags }}"