Skip to content

Commit

Permalink
Merge pull request #319 from JohnRTitor/add-workflows
Browse files Browse the repository at this point in the history
workflows: add nix-tests workflow
  • Loading branch information
LGFae authored May 28, 2024
2 parents 2e59e4c + 95771f1 commit c1ecdb0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 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-build:
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
5 changes: 2 additions & 3 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
# - cron: '0 0 * * *' # runs everyday at 00:00
- cron: '0 0 1 * *' # Run monthly
push:
paths:
- 'flake.nix'
Expand All @@ -14,7 +13,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v25
uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit c1ecdb0

Please sign in to comment.