Skip to content

Commit

Permalink
Add --accept-flake-config flag to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrikstrid committed Dec 16, 2024
1 parent 00d1d2d commit 9f345d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
- uses: cachix/install-nix-action@v30

- name: "Run nix flake check"
run: nix flake check
run: nix flake check --accept-flake-config

- name: "Unit tests"
run: nix develop -c dune runtest --instrument-with bisect_ppx --force --no-buffer
run: nix develop --accept-flake-config -c dune runtest --instrument-with bisect_ppx --force --no-buffer

- name: Send coverage report
run: nix develop -c bisect-ppx-report send-to Codecov
run: nix develop --accept-flake-config -c bisect-ppx-report send-to Codecov
if: ${{ matrix.os == 'ubuntu-latest' }}
continue-on-error: true

- name: "Generate documentation"
run: nix develop -c dune build @doc --force --no-buffer
run: nix develop --accept-flake-config -c dune build @doc --force --no-buffer
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' && matrix.os == 'ubuntu-latest' }}

- name: Deploy
Expand Down

0 comments on commit 9f345d0

Please sign in to comment.