File tree 1 file changed +28
-15
lines changed
1 file changed +28
-15
lines changed Original file line number Diff line number Diff line change @@ -22,34 +22,47 @@ concurrency:
22
22
# will skip running `yarn install` if it successfully fetched from cache
23
23
24
24
jobs :
25
- fmt :
25
+ prettier :
26
26
name : Format with Prettier
27
27
runs-on : ubuntu-latest
28
28
timeout-minutes : 5
29
29
steps :
30
30
- name : Checkout repo
31
31
uses : actions/checkout@v3
32
32
33
+ - name : Run prettier with actionsx/prettier
34
+ uses : actionsx/prettier@v2
35
+ with :
36
+ args : --check --loglevel=warn .
37
+
38
+ doctoc :
39
+ name : Doctoc markdown files
40
+ runs-on : ubuntu-latest
41
+ timeout-minutes : 5
42
+ steps :
43
+ - name : Checkout repo
44
+ uses : actions/checkout@v3
45
+
46
+ - name : Get changed files
47
+ id : changed-files
48
+ uses :
tj-actions/[email protected]
49
+ with :
50
+ files : |
51
+ docs/**
52
+
33
53
- name : Install Node.js v16
54
+ if : steps.changed-files.outputs.any_changed == 'true'
34
55
uses : actions/setup-node@v3
35
56
with :
36
57
node-version : " 16"
58
+ cache : " yarn"
37
59
38
- - name : Fetch dependencies from cache
39
- id : cache-node-modules
40
- uses : actions/cache@v3
41
- with :
42
- path : " **/node_modules"
43
- key : yarn-build-${{ hashFiles('**/yarn.lock') }}
44
- restore-keys : |
45
- yarn-build-
46
-
47
- - name : Install dependencies
48
- if : steps.cache-node-modules.outputs.cache-hit != 'true'
49
- run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
60
+ - name : Install doctoc
61
+ run :
yarn global add [email protected]
50
62
51
- - name : Format files with Prettier
52
- run : yarn fmt
63
+ - name : Run doctoc
64
+ if : steps.changed-files.outputs.any_changed == 'true'
65
+ run : yarn doctoc
53
66
54
67
lint-helm :
55
68
name : Lint Helm chart
You can’t perform that action at this time.
0 commit comments