Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/nix-shell.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# https://nix.dev/tutorials/continuous-integration-github-actions
name: "Test nix-shell"
on:
push:
branches:
- '**'
paths-ignore: []
pull_request:
paths-ignore: []

- push
- pull_request
jobs:
nix-shell:
runs-on: ubuntu-latest
Expand All @@ -16,4 +10,12 @@ jobs:
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-21.11
extra_nix_config: |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://hydra.iohk.io https://cache.nixos.org/
- uses: cachix/cachix-action@v10
with:
# https://nix.dev/tutorials/continuous-integration-github-actions#setting-up-github-actions
name: hackage-server
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-shell --pure --run "cabal update && cabal build all --enable-tests"