-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 955 Bytes
/
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
name: Unit Tests
on:
push:
#
jobs:
test:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container:
image: kcov/kcov
options: --security-opt seccomp=unconfined
timeout-minutes: 15
steps:
- name: Install dependencies
run: |
apt update
apt install -y git build-essential curl
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2.0.1
- name: Run Tests
id: test
shell: bash
run: zig build test -Dcoverage
- name: Upload coverage reports to Codecov
run: |
# Replace `linux` below with the appropriate OS
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -s kcov-output