mirror of
https://github.com/swarm-game/swarm.git
synced 2024-08-17 02:20:31 +03:00
parent
9253b0eb94
commit
e851f445a8
24
.github/workflows/normalize-cabal.yml
vendored
Normal file
24
.github/workflows/normalize-cabal.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: Normalize cabal file formatting
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**.hs'
|
||||
- '**.cabal'
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.hs'
|
||||
- '**.cabal'
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
gild:
|
||||
name: Normalize cabal
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: tfausak/cabal-gild-setup-action@v1
|
||||
with:
|
||||
version: 0.3.0.1
|
||||
- run: cabal-gild --input swarm.cabal --mode check
|
7
scripts/normalize-cabal.sh
Executable file
7
scripts/normalize-cabal.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash -ex
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
cd $SCRIPT_DIR/..
|
||||
|
||||
CABAL_FILE=swarm.cabal
|
||||
cabal-gild --input $CABAL_FILE --output $CABAL_FILE --mode format
|
1592
swarm.cabal
1592
swarm.cabal
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user