-
Notifications
You must be signed in to change notification settings - Fork 11
33 lines (32 loc) · 890 Bytes
/
ci.yaml
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
name: "CI"
on:
# Run only when pushing to master branch, and making PRs
push:
branches:
- '*'
pull_request:
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Don't upgrade Nix until https://github.com/srid/nixci/issues/35 is fixed
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: srid
- name: Build 🔨
run: nix run github:srid/nixci
- name: Test example
id: example
run: |
cd ./example
nix develop --override-input mission-control path:../. -c , fmt
- name: Test template
id: template
run: |
FLAKE=$(pwd)
TEMP_DIR=$(mktemp -d)
cd $TEMP_DIR
nix flake init -t $FLAKE
nix develop --override-input mission-control path:${FLAKE} -c , fmt