Skip to content

Commit 6c09312

Browse files
committed
Add Github precommit workflow
1 parent a208f39 commit 6c09312

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- uses: ./.github/actions/setup-build
15+
with:
16+
ghc: "9.2.3"
17+
os: ${{ runner.os }}
18+
shorten-hls: 'false'
19+
20+
- name: "Install stylish-haskell"
21+
run: |
22+
cabal update
23+
cabal install stylish-haskell
24+
25+
- uses: actions/setup-python@v3
26+
- uses: pre-commit/action@v3.0.0

0 commit comments

Comments
 (0)