Merge pull request #229 from mbj/add/fn-cidr #303
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: CI | |
on: push | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
env: | |
STACK_YAML: ${{ github.workspace }}/stack-${{ matrix.ghc }}.yaml | |
strategy: | |
fail-fast: false | |
matrix: | |
ghc: ['9.4', '9.6'] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Stack | |
run: ci/setup-stack.sh | |
- name: Cache Dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.stack | |
key: ${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles(env.STACK_YAML, format('{0}.lock', env.STACK_YAML)) }} | |
restore-keys: | | |
${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles(env.STACK_YAML, format('{0}.lock', env.STACK_YAML)) }} | |
${{ matrix.os }}-${{ matrix.ghc }} | |
- name: Install dependencies | |
run: stack build --test --only-dependencies | |
- name: Build | |
run: stack build --fast --test --no-run-tests | |
- name: Run tests | |
run: stack build --fast --test |