Skip to content

Commit

Permalink
feat: use run-fourmolu action in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Jan 12, 2024
1 parent 11dad81 commit f86426d
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/ghc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,20 @@ jobs:
- name: 📥 Checkout repository
uses: actions/checkout@v4

- uses: haskell-actions/run-fourmolu@v9
if: matrix.os == 'ubuntu-latest'
with:
version: "0.14.0.0"
pattern: |
eo-phi-normalizer/**/*.hs
!eo-phi-normalizer/src/Language/EO/Phi/Syntax/**/*.hs
!eo-phi-normalizer/Setup.hs
- name: 🧰 Setup Stack
# FIXME use freckle/stack-action@v4 when https://github.com/freckle/stack-action/pull/31 is merged
uses: deemp/stack-action@main
with:
fast: ${{ github.ref_name != 'master' }}

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'

- name: Check formatting
shell: bash
run: |
pip install -r requirements.txt
pre-commit run -c .pre-commit-checks.yaml fourmolu-check --all

- uses: actions/setup-node@v4
with:
Expand All @@ -54,7 +51,7 @@ jobs:
java-version: 21

- run: npm install -g [email protected]

- run: ./pipeline.sh

haddock:
Expand Down

0 comments on commit f86426d

Please sign in to comment.