configuration.nix/.github/workflows/check.yml

31 lines
789 B
YAML
Raw Normal View History

2024-01-14 17:59:46 +01:00
name: Check flake
on:
push:
branches: [main]
path:
- ./**.nix
- ./flake.lock
2024-01-14 17:59:46 +01:00
pull_request:
schedule:
- cron: 5 4 * * 5 # At 04:05 on Friday.
jobs:
check:
runs-on: ubuntu-22.04
steps:
2024-02-02 15:13:08 +01:00
- uses: actions/checkout@v4
2024-01-14 17:59:46 +01:00
- uses: DeterminateSystems/nix-installer-action@v9
2024-02-02 15:13:08 +01:00
- uses: DeterminateSystems/magic-nix-cache-action@v3
2024-01-14 17:59:46 +01:00
- name: Run `nix flake check`
run: nix flake check
lockfile:
needs: check
if: ${{ github.event_name == 'schedule' }} # only run when scheduled
runs-on: ubuntu-22.04
steps:
2024-02-02 15:13:08 +01:00
- uses: actions/checkout@v4
2024-01-14 17:59:46 +01:00
- uses: DeterminateSystems/nix-installer-action@v9
- uses: DeterminateSystems/update-flake-lock@v20
- name: Run `nix flake check`
run: nix flake check