Skip to content

Commit

Permalink
workflows: add CI nix-tests workflow
Browse files Browse the repository at this point in the history
It checks the flake and nix dependencies
then builds the package
  • Loading branch information
JohnRTitor committed May 28, 2024
1 parent 6a8a9ad commit 08cca00
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ jobs:
uses: ./.github/workflows/dependencies.yml
test:
uses: ./.github/workflows/test.yml
nix-tests:
uses: ./.github/workflows/nix-tests.yml
17 changes: 17 additions & 0 deletions .github/workflows/nix-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Nix-Tests"
on:
workflow_call:

jobs:
nix-flake-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: nix flake show
- run: nix flake check --print-build-logs
- run: nix build --print-build-logs

0 comments on commit 08cca00

Please sign in to comment.