Skip to content

Commit

Permalink
ci: update codestyle workflow
Browse files Browse the repository at this point in the history
- Use the `ubuntu-22.04` image
- Use GHC 9.6
- Use `cabal-fmt-0.1.11`
  • Loading branch information
NicolasT committed Mar 31, 2024
1 parent d76ae3d commit b438a4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
ormolu:
name: Lint code layout using Ormolu
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v2
Expand All @@ -16,7 +16,7 @@ jobs:

cabal-fmt:
name: Lint Cabal project description using cabal-fmt
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Cache Cabal files
uses: actions/cache@v3
Expand All @@ -29,10 +29,10 @@ jobs:
- name: Install cabal-fmt
run: |
cabal update
cabal install "cabal-fmt-0.1.6"
cabal install --ignore-project --with-compiler=ghc-9.6 "cabal-fmt-0.1.11"
- name: checkout
uses: actions/checkout@v2

- name: Check formatting of Cabal project description
run: ~/.cabal/bin/cabal-fmt --Werror --check landlock/landlock.cabal psx/psx.cabal
run: ~/.local/bin/cabal-fmt --Werror --check landlock/landlock.cabal psx/psx.cabal

0 comments on commit b438a4f

Please sign in to comment.