Skip to content

Merge pull request #5 from adetokunbo/sort-by-columns #93

Merge pull request #5 from adetokunbo/sort-by-columns

Merge pull request #5 from adetokunbo/sort-by-columns #93

Workflow file for this run

name: "Nix Build"
on:
pull_request:
push:
branches: [main]
jobs:
cabal-nix:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Initalize User Nix conf
run: |
mkdir -p $HOME/.config/nix
- name: Add haskell.nix as a substituter in the user Nix conf
run: |
echo "substituters = https://cache.nixos.org https://cache.iog.io" >> $HOME/.config/nix/nix.conf
- name: Add the public key for the haskell.nix substituter
run: |
echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" >> $HOME/.config/nix/nix.conf
- uses: cachix/cachix-action@v10
with:
name: adetokunbo-open
- name: Display the completed user Nix conf
run: |
cat $HOME/.config/nix/nix.conf
- name: Run the tests in a nix-shell
run: |
nix-shell --run "cabal test --test-show-details=streaming all"