File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 6
6
branches : [master]
7
7
8
8
jobs :
9
- pre-commit :
10
- runs-on : ubuntu-latest
11
- steps :
9
+ file-diff :
12
10
- uses : actions/checkout@v3
13
11
- uses : technote-space/get-diff-action@v4.0.1
14
12
with :
15
13
PATTERNS : |
16
14
+(src|exe|test|ghcide|plugins|hls-plugin-api|hie-compat|hls-graph|hls-test-utils)/**/*.hs
15
+ pre-commit :
16
+ needs : file-diff
17
+ if env.GIT_DIFF
18
+ runs-on : ubuntu-latest
19
+ steps :
17
20
18
21
- uses : ./.github/actions/setup-build
19
22
with :
20
23
os : ${{ runner.os }}
21
24
shorten-hls : false
22
- if : env.GIT_DIFF
23
25
24
26
- name : " Install stylish-haskell"
25
27
run : |
26
28
cabal install stylish-haskell
27
29
echo "${HOME}/.cabal/bin" >> $GITHUB_PATH
28
- if : env.GIT_DIFF
29
30
30
31
- name : " Check stylish-haskell is available"
31
32
run : |
32
33
echo $(which stylish-haskell)
33
- if : env.GIT_DIFF
34
34
35
35
- name : Compiled deps cache
36
36
id : stylish-haskell-compiled-cache
44
44
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-${{ env.INDEX_STATE }}-
45
45
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-${{ inputs.ghc }}-
46
46
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-
47
- if : env.GIT_DIFF
48
47
49
48
- uses : actions/setup-python@v4
50
- if : env.GIT_DIFF
51
49
- uses : pre-commit/action@v3.0.0
52
50
with :
53
51
extra_args : --files ${{ env.GIT_DIFF }}
54
- if : env.GIT_DIFF
You can’t perform that action at this time.
0 commit comments