File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
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
+
19
+ - name : " Install stylish-haskell"
20
+ run : |
21
+ cabal install stylish-haskell
22
+ echo "${HOME}/.cabal/bin" >> $GITHUB_PATH
23
+
24
+ - name : " Check stylish-haskell is available"
25
+ run : |
26
+ echo $(which stylish-haskell)
27
+
28
+ - name : Compiled deps cache
29
+ id : stylish-haskell-compiled-cache
30
+ uses : actions/cache@v2
31
+ env :
32
+ cache-name : stylish-haskell-compiled-cache
33
+ with :
34
+ path : ${{ env.CABAL_PKGS_DIR }}
35
+ key : ${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-${{ env.INDEX_STATE }}-${{ hashFiles('cabal.project.freeze') }}
36
+ restore-keys : |
37
+ ${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-${{ env.INDEX_STATE }}-
38
+ ${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-
39
+ ${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-
40
+
41
+ - uses : actions/setup-python@v3
42
+ -
uses :
pre-commit/[email protected]
You can’t perform that action at this time.
0 commit comments