forked from zimeg/git-coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 980 Bytes
/
test.yml
File metadata and controls
30 lines (30 loc) · 980 Bytes
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Test coverage
on:
push:
workflow_dispatch:
jobs:
test:
name: Report
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install a flaked Nix
uses: DeterminateSystems/nix-installer-action@c5a866b6ab867e88becbed4467b93592bce69f8a # v21
- name: Run tests
run: |
shopt -s globstar
nix develop -c zig fmt --check ./src/**/*.zig
nix develop -c zig build
nix develop -c zig build test -Dcoverage
- name: Upload reports
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true