-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 955 Bytes
/
stylishHaskell.yml
File metadata and controls
34 lines (26 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: stylish-haskell
# Trigger the workflow on push or pull request, but only for the main branch
on:
pull_request:
push:
branches: [main]
jobs:
stylishHaskell:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Install stylish-haskell
run: |
wget https://github.com/haskell/stylish-haskell/releases/download/v0.14.4.0/stylish-haskell-v0.14.4.0-linux-x86_64.tar.gz
tar -xvzf stylish-haskell-v0.14.4.0-linux-x86_64.tar.gz
cp stylish-haskell-v0.14.4.0-linux-x86_64/stylish-haskell stylish-haskell
chmod +x stylish-haskell
- name: Run stylish-haskell
run: ./stylish-haskell -r -v -i .
- name: What files have changed from HEAD, and in what ways have they changed?
run: |
git diff-index --name-status HEAD
git diff
- name: Fail, if any files have changed from HEAD
run: git diff-index --quiet HEAD