ci: run flake check before building stuff

This commit is contained in:
Antoine Martin 2022-04-06 16:38:24 +02:00
parent 799ae3e92a
commit b7b9ececa4

View file

@ -9,9 +9,27 @@ on:
- 'flake.lock' - 'flake.lock'
- '.github/workflows/*' - '.github/workflows/*'
jobs: jobs:
flake-check:
name: Flake check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
- uses: cachix/cachix-action@v10
with:
name: alarsyo
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: "nix-community"
- name: Build package
run: nix flake check
build-pkgs: build-pkgs:
name: Nix packages name: Nix packages
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [ flake-check ]
strategy: strategy:
fail-fast: false fail-fast: false