Bump actions/cache from 4.0.1 to 4.0.2 (#43) #85
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
# Runs on pull requests against master, and on master branch | |
name: Haskell Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: [ master ] | |
paths: | |
- '.github/workflows/haskell.yml' | |
- 'stack*.yaml' | |
- 'parthenon.cabal' | |
- 'app/**' | |
- 'src/**' | |
- 'test/**' | |
jobs: | |
parthenon: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: macos-latest | |
- os: ubuntu-latest | |
- os: windows-latest | |
steps: | |
# setup: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Setup Haskell | |
id: setup-haskell-cabal | |
uses: haskell/actions/setup@v2 | |
with: | |
ghc-version: '8.10' | |
enable-stack: true | |
- name: Update Cabal Index | |
run: cabal update | |
- name: Freeze | |
run: cabal freeze | |
# cache | |
- name: Cache store | |
uses: actions/cache@v4.0.2 | |
with: | |
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }} | |
key: ${{ runner.os }}-${{ hashFiles('cabal.project.freeze') }} | |
#actions | |
- name: Test | |
run: stack test |