Bump actions/cache from 3 to 4 #33
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: pipeline | |
on: [push, pull_request] | |
jobs: | |
pipeline: | |
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
ghc: ["8.10", "9.0", "9.2"] | |
os: [ubuntu-latest, macOS-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Haskell | |
id: setup-haskell-cabal | |
uses: haskell/actions/setup@v2 | |
with: | |
ghc-version: "9.2" | |
- name: Formatting | |
uses: mrkkrp/ormolu-action@v14 | |
- name: Set up HLint | |
uses: haskell/actions/hlint-setup@v2 | |
- name: Run HLint | |
uses: haskell/actions/hlint-run@v2 | |
with: | |
path: '["src/", "test/"]' | |
- name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cabal/packages | |
~/.cabal/store | |
dist-newstyle | |
key: ${{ runner.os }}-ghc-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }} | |
restore-keys: ${{ runner.os }}-ghc- | |
- name: Configure | |
run: cabal configure --enable-tests --enable-benchmarks --test-show-details=direct | |
- name: Install dependencies | |
run: cabal build all --only-dependencies | |
- name: Build | |
run: cabal build all | |
- name: Test | |
run: cabal test all |