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
name: Rust
on:
push:
branches:
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
jobs:
test:
environment: symbolica_keys
runs-on: ubuntu-latest
env:
SYMBOLICA_LICENSE: ${{ secrets.SYMBOLICA_LICENSE }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
- name: Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v7
- name: Build
run: nix build --impure
- name: Run tests
run: nix flake check -v --print-build-logs --impure
- name: Run tarpaulin
run: nix build .#spenso-tarpaulin-coverage --impure
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./result/cobertura.xml
fail_ci_if_error: true