Update 03-configuring-the-dispatcher.md #96
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
name: Build & test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: haskell/actions/setup@v2 | |
with: | |
ghc-version: "9.0.2" # Exact version of ghc to use | |
# cabal-version: 'latest'. Omitted, but defaults to 'latest' | |
enable-stack: true | |
stack-version: "2.9.3" | |
# Attempt to load cached dependencies | |
- name: Cache Stack dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.stack | |
.stack-work | |
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }} | |
- name: Build and test | |
run: | | |
stack build --test --no-run-tests --bench --no-run-benchmarks --haddock --no-haddock-deps --no-haddock-hyperlink-source --fast | |
# Save cached dependencies | |
- name: Cache Stack dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.stack | |
.stack-work | |
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }} |