-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.23 KB
/
ci.yml
File metadata and controls
53 lines (42 loc) · 1.23 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install osslsigncode
run: |
sudo apt-get update
sudo apt-get install -y osslsigncode
osslsigncode --version
- uses: actions/setup-go@v5
with:
go-version: stable
cache: true
- name: go vet
run: go vet ./...
- name: go test (race + coverage)
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Coverage summary
run: go tool cover -func=coverage.out | tail -1
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage.out
format: golang
- name: Fuzz Parse (30s)
run: go test -run='^$' -fuzz=FuzzParse -fuzztime=30s .
- name: Fuzz tlvValue (15s)
run: go test -run='^$' -fuzz=FuzzTLVValue -fuzztime=15s .
- name: Upload fuzz failures
if: failure()
uses: actions/upload-artifact@v4
with:
name: fuzz-corpus-failures
path: testdata/fuzz
if-no-files-found: ignore