tangled
alpha
login
or
join now
isabelroses.com
/
blahaj
1
fork
atom
silly goober bot
1
fork
atom
overview
issues
pulls
pipelines
ci: add testing via nix
isabelroses.com
2 years ago
154d4bb4
72e26b70
+30
1 changed file
expand all
collapse all
unified
split
.github
workflows
test.yml
+30
.github/workflows/test.yml
···
1
1
+
name: Test
2
2
+
3
3
+
on:
4
4
+
workflow_dispatch:
5
5
+
push:
6
6
+
paths:
7
7
+
- "src/**"
8
8
+
- "*.nix"
9
9
+
- "*.toml"
10
10
+
11
11
+
jobs:
12
12
+
check-flake:
13
13
+
runs-on: ubuntu-latest
14
14
+
15
15
+
steps:
16
16
+
- name: Checkout
17
17
+
uses: actions/checkout@v4
18
18
+
19
19
+
- name: Install Lix
20
20
+
run: |
21
21
+
curl -sSf -L https://install.lix.systems/lix | sh -s -- install --no-confirm
22
22
+
echo "trusted-users = root worker" | sudo tee -a /etc/nix/nix.conf
23
23
+
echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf
24
24
+
sudo systemctl restart nix-daemon
25
25
+
26
26
+
- name: Nix Magic Cache
27
27
+
uses: DeterminateSystems/magic-nix-cache-action@main
28
28
+
29
29
+
- name: Check Flake
30
30
+
run: nix build -L .