CI improvements (#11) #5
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: | |
test: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
fail-fast: true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Remove GHCup | |
run: ghcup nuke | |
- name: Check GHCup is not present | |
run: "! command -v ghcup" | |
shell: bash | |
- name: Run unit tests | |
run: ./test/bats/bin/bats -T test | |
- name: Run integration tests | |
uses: asdf-vm/actions/plugin-test@v3 | |
with: | |
plugin: ghc | |
command: ghc --version |