Skip to content

Bump actions/cache from 3.3.2 to 4.0.0 (#41) #81

Bump actions/cache from 3.3.2 to 4.0.0 (#41)

Bump actions/cache from 3.3.2 to 4.0.0 (#41) #81

Workflow file for this run

# 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.0
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ hashFiles('cabal.project.freeze') }}
#actions
- name: Test
run: stack test