-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1023 Bytes
/
Copy pathcheck.yml
File metadata and controls
37 lines (34 loc) · 1023 Bytes
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: check
on:
push:
branches: [main]
pull_request:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
experimental-features = nix-command flakes
accept-flake-config = true
- name: nix fmt --ci
run: nix fmt -- --ci
flake-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
experimental-features = nix-command flakes
accept-flake-config = true
# Pulls cached frigate + VM-test outputs from prior runs, and pushes
# any new outputs back. Skips the Gradle build entirely on cache hits.
- uses: cachix/cachix-action@v15
with:
name: 2140-dev
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: nix flake check
run: nix flake check --print-build-logs