From f86426d44316bc592985b5b005b8ec553563c212 Mon Sep 17 00:00:00 2001 From: Danila Danko Date: Sat, 13 Jan 2024 00:45:22 +0300 Subject: [PATCH] feat: use run-fourmolu action in CI --- .github/workflows/ghc.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ghc.yml b/.github/workflows/ghc.yml index 12a355cf1..bf3c72684 100644 --- a/.github/workflows/ghc.yml +++ b/.github/workflows/ghc.yml @@ -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: @@ -54,7 +51,7 @@ jobs: java-version: 21 - run: npm install -g eolang@0.15.1 - + - run: ./pipeline.sh haddock: