mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2024-11-26 07:06:45 +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
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
secrets:
|
secrets:
|
||||||
CACHIX_AUTH_TOKEN:
|
CACHIX_AUTH_TOKEN:
|
||||||
|
@ -19,5 +20,5 @@ jobs:
|
||||||
|
|
||||||
uses: ./.github/workflows/nix.yml
|
uses: ./.github/workflows/nix.yml
|
||||||
with:
|
with:
|
||||||
command: nix build -L .#${{ matrix.package }}
|
command: nix build -L .#${{ matrix.package }} -v
|
||||||
secrets: inherit
|
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