backwards compatible import of liftA2 #35
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: Haskell CI (fast) | |
on: | |
push: | |
branches: ['**'] | |
paths: | |
- "**.hs" | |
- "stack.yml" | |
- "package.yml" | |
permissions: | |
contents: read | |
jobs: | |
build: | |
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache Stack | |
id: cache-stack-unix | |
uses: actions/cache@v3 | |
with: | |
path: ~/.stack | |
key: ubuntu-latest-stack-home-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }} | |
- name: Setup stack | |
uses: haskell/actions/setup@v2 | |
with: | |
enable-stack: true | |
stack-no-global: true | |
- name: Install dependencies | |
run: | | |
set -ex | |
stack --no-terminal --install-ghc test --bench --only-dependencies | |
set +ex | |
- name: Build | |
run: | | |
set -ex | |
stack --no-terminal $ARGS test --test-arguments="--cheap" | |
set +ex |