-
-
Notifications
You must be signed in to change notification settings - Fork 301
45 lines (35 loc) · 957 Bytes
/
kcov.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
name: Code Coverage
on:
pull_request:
types: [opened, synchronize]
permissions:
pull-requests: write
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: zig version
- run: zig env
- name: Build
run: zig build
- name: Install kcov
run: |
wget https://github.com/SimonKagstrom/kcov/releases/download/v42/kcov-amd64.tar.gz
sudo tar xf kcov-amd64.tar.gz -C /
- name: Run Tests with kcov
run: |
kcov --version
zig build test -Dgenerate_coverage
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: zig-out/kcov/kcov-merged
fail_ci_if_error: true
verbose: true