Skip to content

Bump actions/checkout from 3 to 4 #31

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #31

Workflow file for this run

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@v3
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