Solve 'Array - squareUp b!' kata #623
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 and run tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Run stack | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Haskell environment | |
uses: haskell-actions/setup@v2 | |
with: | |
ghc-version: '9.4.8' | |
cabal-version: '3.10.3.0' | |
enable-stack: true | |
stack-version: '2.15.5' | |
- name: Setup stack cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.stack | |
.stack-work | |
key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml.lock', 'package.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-stack | |
- name: Build solution | |
run: stack build | |
- name: Run tests | |
run: stack test |