mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2024-11-01 11:01:16 +00:00
CI: add check action
This commit is contained in:
parent
65f49835f6
commit
c5a6662b2d
2 changed files with 22 additions and 1 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -1,6 +1,7 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
secrets:
|
||||
CACHIX_AUTH_TOKEN:
|
||||
|
@ -19,5 +20,5 @@ jobs:
|
|||
|
||||
uses: ./.github/workflows/nix.yml
|
||||
with:
|
||||
command: nix build -L .#${{ matrix.package }}
|
||||
command: nix build -L .#${{ matrix.package }} -v
|
||||
secrets: inherit
|
||||
|
|
20
.github/workflows/check.yml
vendored
Normal file
20
.github/workflows/check.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Checks
|
||||
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
check:
|
||||
strategy:
|
||||
matrix:
|
||||
command:
|
||||
- NIXPKGS_ALLOW_INSECURE=1 nix flake check --accept-flake-config --impure
|
||||
- nix run nixpkgs#alejandra -- -c . -e ./npins
|
||||
|
||||
uses: ./.github/workflows/nix.yml
|
||||
with:
|
||||
command: ${{ matrix.command }}
|
||||
|
||||
build:
|
||||
needs: check
|
||||
uses: ./.github/workflows/build.yml
|
||||
secrets: inherit
|
Loading…
Reference in a new issue