Setup devenv via Nix flakes (#20) #48
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
--- | |
name: build | |
on: push | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v24 | |
- run: nix develop --impure -c pre-commit run -a | |
test: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
test: | |
- plugin: cabal | |
- plugin: ghc | |
- plugin: hls | |
command: haskell-language-server-wrapper --version | |
- plugin: hls | |
version: 1.6.1.0 | |
command: haskell-language-server-wrapper --version | |
- plugin: stack | |
fail-fast: true | |
runs-on: ${{ matrix.os }} | |
needs: [check] | |
steps: | |
- uses: asdf-vm/actions/plugin-test@v3 | |
with: | |
command: ${{ matrix.test.command || format('{0} --version', matrix.test.plugin) }} | |
plugin: ${{ matrix.test.plugin }} | |
version: ${{ matrix.test.version || 'latest' }} |