-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.29 KB
/
ci-linux.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
name: CI
on:
push:
branches:
- master
schedule:
# Once a week on saturday
- cron: '7 13 * * 6'
workflow_dispatch:
env:
NUR_REPO: shamilton
CACHIX_CACHE: scott-hamilton
NIXPKGS_ALLOW_BROKEN: 0
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-24.05
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
- uses: cachix/cachix-action@v15
with:
name: scott-hamilton
- name: Run coverage with Nix test-driver
run: |
nix-build coverage/test.nix
cp -Lr result results
ls -lh
ls -lh results
- name: Archive code coverage results
uses: actions/upload-artifact@v4.3.4
with:
name: code-coverage-report
path: |
results
- name: Push coverage data to Codacy
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: result/coverage_data/tabbed-alacritty.lcov