-
Notifications
You must be signed in to change notification settings - Fork 229
49 lines (39 loc) · 1.12 KB
/
nix-check.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
name: Nix Flake Check
on:
pull_request:
push:
branches:
- master
- 'release-*'
- 'dev-*'
permissions:
contents: read
jobs:
flake-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
- name: Enable flakes
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Check Nix flake inputs
run: nix flake check
- name: Show flake metadata
if: always() # Run even if previous step fails
run: nix flake metadata
- name: Validate flake outputs
if: always() # Run even if previous step fails
run: nix flake show
- name: Check build in Nix dev shell
run: |
# Enter nix develop and run build commands
nix develop --command bash -c '
# Install dependencies
yarn install
# Build the project
yarn build
# Build cosmic-swingset
cd packages/cosmic-swingset && make
'