ci-nix github action #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/marketplace/actions/install-nix | |
name: "ci-nix" | |
on: | |
pull_request: | |
push: | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@v27 | |
# Possibly need to cache cabal. | |
- name: Cache .cabal | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.cabal-setup.outputs.cabal-store }} | |
key: cabal-${{ hashFiles('cabal.project') }} | |
# We currently do not have a default target | |
- run: nix build .#wst-poc | |
- run: nix flake check | |