Debian Codegraph @

.github/workflows/p9.yml

raw
1 name: p9
2
3 on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main ]
8
9 jobs:
10
11 build:
12 name: Build
13 strategy:
14 matrix:
15 platform: [ubuntu-latest, macos-latest, windows-latest]
16 runs-on: ${{ matrix.platform }}
17 steps:
18 - name: Set up Go 1.x
19 uses: actions/setup-go@v2
20 with:
21 go-version: ^1.18
22 id: go
23
24 - name: Check out code into the Go module directory
25 uses: actions/checkout@v3
26
27 - name: Build
28 run: go build -v ./...
29
30 - name: Test
31 run: go test -v ./...
32 fuzz:
33 name: Fuzz
34 runs-on: [ubuntu-latest]
35 needs: [build]
36 steps:
37 - name: Build Fuzzers
38 id: build
39 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
40 with:
41 oss-fuzz-project-name: 'p9'
42 dry-run: false
43
44 - name: Run Fuzzers
45 uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
46 with:
47 oss-fuzz-project-name: 'p9'
48 fuzz-seconds: 600
49 dry-run: false
50
51 - name: Upload Crash
52 uses: actions/upload-artifact@v1
53 if: failure() && steps.build.outcome == 'success'
54 with:
55 name: artifacts
56 path: ./out/artifacts