-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (31 loc) · 1.05 KB
/
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
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
fail-fast: false
matrix:
go-version: [1.22.x, 1.23.x]
venv: [windows-2019, windows-2022]
fips: [1, 0]
runs-on: ${{ matrix.venv }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Set FIPS mode
run: REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy /v Enabled /t REG_DWORD /f /d ${{ matrix.fips }}
- name: Run Test - Short
run: go test -v -gcflags=all=-d=checkptr -count 1 ./...
env:
GO_TEST_FIPS: ${{ matrix.fips }}
- name: Run Test - Long
# Run each test 10 times so the garbage collector chimes in
# and exercises the multiple finalizers we use.
# This can detect use-after-free and double-free issues.
run: go test -v -gcflags=all=-d=checkptr -count 10 -short ./...
env:
GO_TEST_FIPS: ${{ matrix.fips }}