2023-06-03 10:48:41 +01:00
|
|
|
name: use nix
|
|
|
|
|
|
|
|
on: push
|
|
|
|
env:
|
|
|
|
DEV_SHELL_NAME: CI
|
2023-06-02 12:22:44 +01:00
|
|
|
jobs:
|
2023-06-03 10:48:41 +01:00
|
|
|
build:
|
2023-07-01 08:48:45 +01:00
|
|
|
runs-on: node-latest
|
2023-06-03 10:48:41 +01:00
|
|
|
steps:
|
2023-06-27 07:23:21 +01:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Nix
|
|
|
|
uses: https://github.com/DeterminateSystems/nix-installer-action@v4
|
|
|
|
with:
|
|
|
|
logger: pretty
|
|
|
|
log-directives: nix_installer=trace
|
|
|
|
backtrace: full
|
|
|
|
init: none
|
|
|
|
- name: Run the Magic Nix Cache
|
|
|
|
uses: https://github.com/DeterminateSystems/magic-nix-cache-action@v1
|
|
|
|
- name: Check
|
|
|
|
run: |
|
2023-06-03 10:48:41 +01:00
|
|
|
nix flake metadata
|
|
|
|
nix flake check
|
2023-06-27 07:23:21 +01:00
|
|
|
nix --no-sandbox develop -c statix check
|