Merge pull request #62 from NicolasT/update-landlock-h #197
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Codestyle | |
on: | |
- push | |
- pull_request | |
jobs: | |
ormolu: | |
name: Lint code layout using Ormolu | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: ormolu | |
uses: mrkkrp/ormolu-action@v10 | |
cabal-fmt: | |
name: Lint Cabal project description using cabal-fmt | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Cache Cabal files | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cabal/packages | |
~/.cabal/store | |
key: ${{ runner.os }}-cabal | |
- name: Install cabal-fmt | |
run: | | |
cabal update | |
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: ~/.local/bin/cabal-fmt --Werror --check landlock/landlock.cabal psx/psx.cabal |