-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (38 loc) · 1.01 KB
/
Copy pathtest.yml
File metadata and controls
39 lines (38 loc) · 1.01 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
on: [push, pull_request]
name: Test
jobs:
test:
runs-on: ubuntu-latest
env:
GOTOOLCHAIN: local
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: '1.27'
cache: false
- name: Test
run: go test ./...
fuzz:
runs-on: ubuntu-latest
env:
GOTOOLCHAIN: local
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: '1.27'
cache: false
- name: Fuzz smoke
# Short per-target budget (~75s total). See internal-docs/FUZZ.md.
run: |
set -euo pipefail
for target in FuzzVerifyRequest FuzzVerifyViaMessage FuzzSignAndVerifyHMAC FuzzHMACViaMessage FuzzNewMessage; do
echo "::group::fuzz $target"
go test -run='^$' -fuzz="$target" -fuzztime=15s .
echo "::endgroup::"
done