-
-
Notifications
You must be signed in to change notification settings - Fork 6
71 lines (58 loc) · 1.47 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
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
name: test
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
run-tests:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- name: Update the system and install dependencies
run: pacman -Syu --noconfirm --noprogressbar --needed python-pip ninja gcc git
- name: Install nox
run: pip install nox
- name: Checkout
uses: actions/[email protected]
- name: Container permissions
run: git config --global --add safe.directory '*'
- name: Run tests
run: nox -s test
- uses: codecov/[email protected]
if: ${{ always() }}
fuzz:
runs-on: ubuntu-latest
container:
image: archlinux
strategy:
fail-fast: false
matrix:
sanitizer:
- address
- memory
- undefined
steps:
- name: Update the system and install dependencies
run: pacman -Syu --noconfirm --noprogressbar --needed python-pip ninja clang git
- name: Install nox
run: pip install nox
- name: Checkout
uses: actions/[email protected]
- name: Container permissions
run: git config --global --add safe.directory '*'
- name: Run fuzzing session
run: nox -s "fuzz(sanitizer='${{ matrix.sanitizer }}')"
- name: Archive crashes
uses: actions/[email protected]
with:
path: crash-*