2023-05-24 00:06:22 +03:00
|
|
|
name: Flake checker CI
|
2023-05-19 18:35:59 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
2023-05-26 15:29:43 +03:00
|
|
|
formatting-checks:
|
|
|
|
name: Check Nix and Rust formatting
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-05-26 15:57:06 +03:00
|
|
|
- name: Install Nix
|
2023-06-13 19:47:30 +03:00
|
|
|
uses: DeterminateSystems/nix-installer-action@v4
|
2023-05-26 15:29:43 +03:00
|
|
|
- name: Check Nix formatting
|
|
|
|
run: nix develop -c check-nixpkgs-fmt
|
|
|
|
- name: Check Rust formatting
|
|
|
|
run: nix develop -c check-rustfmt
|
|
|
|
|
2023-05-24 00:06:22 +03:00
|
|
|
check-flake-dirty:
|
2023-05-24 00:35:05 +03:00
|
|
|
name: Check flake.lock test (dirty 😈)
|
2023-05-19 18:35:59 +03:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Nix
|
2023-06-13 19:47:30 +03:00
|
|
|
uses: DeterminateSystems/nix-installer-action@v4
|
2023-05-22 19:32:14 +03:00
|
|
|
- name: Check flake.lock
|
|
|
|
run: |
|
2023-05-25 05:20:00 +03:00
|
|
|
nix develop -c cargo run -- ./flake.dirty.lock
|
2023-05-25 19:03:01 +03:00
|
|
|
|
2023-05-24 00:06:22 +03:00
|
|
|
check-flake-clean:
|
2023-05-24 00:35:05 +03:00
|
|
|
name: Check flake.lock test (clean 👼)
|
2023-05-24 00:06:22 +03:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Nix
|
2023-06-13 19:47:30 +03:00
|
|
|
uses: DeterminateSystems/nix-installer-action@v4
|
2023-05-24 00:06:22 +03:00
|
|
|
- name: Check flake.lock
|
|
|
|
run: |
|
2023-05-25 05:20:00 +03:00
|
|
|
nix develop -c cargo run
|
2023-06-13 19:32:57 +03:00
|
|
|
|
|
|
|
check-flake-dirty-fail-mode:
|
|
|
|
name: Check flake.lock test (dirty 😈 plus fail mode activated)
|
|
|
|
runs-on: ubuntu-22.04
|
2023-06-13 19:40:54 +03:00
|
|
|
if: false
|
2023-06-13 19:32:57 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@v2
|
|
|
|
- name: Check flake.lock
|
|
|
|
run: |
|
|
|
|
nix develop -c cargo run -- ./flake.dirty.lock --fail-mode
|