Skip to content

Bump mrkkrp/ormolu-action from 14 to 15 #36

Bump mrkkrp/ormolu-action from 14 to 15

Bump mrkkrp/ormolu-action from 14 to 15 #36

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