File tree Expand file tree Collapse file tree 2 files changed +48
-56
lines changed Expand file tree Collapse file tree 2 files changed +48
-56
lines changed Original file line number Diff line number Diff line change 27
27
- name : Check changelogs
28
28
run : ./scripts/check-changelogs.sh
29
29
30
+ stylish-haskell :
31
+ runs-on : ubuntu-22.04
32
+
33
+ env :
34
+ STYLISH_HASKELL_VERSION : " 0.14.4.0"
35
+
36
+ steps :
37
+ - name : Set cache version
38
+ run : |
39
+ echo "CACHE_VERSION=hi5eTh3A" >> $GITHUB_ENV
40
+
41
+ - name : " Install build environment (apt-get)"
42
+ run : |
43
+ sudo apt-get update
44
+ sudo apt-get -y install fd-find
45
+
46
+ - name : " Setup Haskell"
47
+ uses : haskell-actions/setup@v2
48
+ id : setup-haskell
49
+ with :
50
+ ghc-version : 9.6.3
51
+ cabal-version : 3.10.1.0
52
+
53
+ - name : " Setup cabal bin path"
54
+ run : |
55
+ echo "$HOME/.cabal/bin" >> $GITHUB_PATH
56
+
57
+ - name : Download stylish-haskell
58
+ run : |
59
+ version="${{ env.STYLISH_HASKELL_VERSION }}"
60
+
61
+ curl -sL \
62
+ "https://github.com/haskell/stylish-haskell/releases/download/v$version/stylish-haskell-v$version-linux-x86_64.tar.gz" \
63
+ | tar -C "/tmp" -xz
64
+
65
+ echo "PATH=/tmp/stylish-haskell-v$version-linux-x86_64:$PATH" >> $GITHUB_ENV
66
+
67
+ - name : " `stylish-haskell` version"
68
+ run : |
69
+ which stylish-haskell
70
+ stylish-haskell --version
71
+
72
+ - uses : actions/checkout@v3
73
+
74
+ - name : " Run `stylish-haskell`"
75
+ run : |
76
+ ./scripts/check-stylish.sh
77
+ git diff --exit-code
Original file line number Diff line number Diff line change 82
82
83
83
- name : strict-mvar [test]
84
84
run : cabal run strict-mvar:test
85
-
86
-
87
- stylish-haskell :
88
- runs-on : ubuntu-22.04
89
-
90
- env :
91
- STYLISH_HASKELL_VERSION : " 0.14.4.0"
92
-
93
- steps :
94
- - name : Set cache version
95
- run : |
96
- echo "CACHE_VERSION=hi5eTh3A" >> $GITHUB_ENV
97
-
98
- - name : " Install build environment (apt-get)"
99
- run : |
100
- sudo apt-get update
101
- sudo apt-get -y install fd-find
102
-
103
- - name : " Setup Haskell"
104
- uses : haskell-actions/setup@v2
105
- id : setup-haskell
106
- with :
107
- ghc-version : 9.6.3
108
- cabal-version : 3.10.1.0
109
-
110
- - name : " Setup cabal bin path"
111
- run : |
112
- echo "$HOME/.cabal/bin" >> $GITHUB_PATH
113
-
114
- - uses : actions/cache@v3
115
- name : " Cache cabal store"
116
- with :
117
- path : ${{ steps.setup-haskell.outputs.cabal-store }}
118
- key : cache-dependencies-${{ env.CACHE_VERSION }}
119
-
120
- - name : Download stylish-haskell
121
- run : |
122
- version="${{ env.STYLISH_HASKELL_VERSION }}"
123
-
124
- curl -sL \
125
- "https://github.com/haskell/stylish-haskell/releases/download/v$version/stylish-haskell-v$version-linux-x86_64.tar.gz" \
126
- | tar -C "/tmp" -xz
127
-
128
- echo "PATH=/tmp/stylish-haskell-v$version-linux-x86_64:$PATH" >> $GITHUB_ENV
129
-
130
- - name : " `stylish-haskell` version"
131
- run : |
132
- which stylish-haskell
133
- stylish-haskell --version
134
-
135
- - uses : actions/checkout@v3
136
-
137
- - name : " Run `stylish-haskell`"
138
- run : |
139
- ./scripts/check-stylish.sh
140
- git diff --exit-code
You can’t perform that action at this time.
0 commit comments