Skip to content

Commit

Permalink
ci: setup for detect flake config
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Jun 30, 2023
1 parent 2dee4da commit 10c7cad
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,31 @@ jobs:
stat ~/.cache/nix/test-path
nix-store --verify-path ~/.cache/nix/test-path
test-nix-config-eval:
needs: build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
id: nix-archives
with:
name: nix-archives-${{ runner.os }}
- uses: ./
with:
nix_archives_url: file://${{steps.nix-archives.outputs.download-path}}
- name: Verify Nix config
run: |
nix build --version # check if new style command is enabled
nix show-config | grep -q 'stalled-download-timeout = 333'
release:
runs-on: ubuntu-latest
needs:
- build
- test
- test-cachix
- test-overwrite-nix-dir
- test-nix-config-eval
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
nixpkgs-nix-2_0_4.flake = false;
};

nixConfig = {
# We set some dummy Nix config here so we can use it for verification in our
# CI test
stalled-download-timeout = 333; # default 300
};

outputs = {
self,
flake-utils,
Expand Down

0 comments on commit 10c7cad

Please sign in to comment.