From 16f43300e6943cafb7748f2d51e027fb7db0a529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20B=C3=A4renz?= Date: Wed, 3 Jan 2024 19:29:12 +0100 Subject: [PATCH] Lint jobs on solution branch --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b4b854..dc3fc6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,34 @@ jobs: with: version: "0.11.0.0" + lint-solution: + name: "Run hlint on the solution branch" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: solution + + - name: Set up HLint + uses: haskell-actions/hlint-setup@v2 + + - name: Run HLint + uses: haskell-actions/hlint-run@v2 + with: + fail-on: warning + + fourmolu-solution: + name: "Run fourmolu on the solution branch" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: solution + + - uses: haskell-actions/run-fourmolu@v9 + with: + version: "0.11.0.0" + generateMatrix: name: "Generate matrix from cabal" runs-on: ubuntu-latest