8
8
9
9
jobs :
10
10
lint :
11
- runs-on : ubuntu-latest
12
- steps :
13
- - name : Checkout Master
14
- uses : actions/checkout@v3
15
- with :
16
- fetch-depth : 0
17
-
18
- - name : Use Node
19
- uses : actions/setup-node@v3
20
- with :
21
- node-version : 18
22
-
23
- - name : Cache Yarn
24
- uses : actions/cache@v3
25
- with :
26
- path : ' **/node_modules'
27
- key : ${{runner.os}}-16-16-node-modules-${{hashFiles('yarn.lock')}}
28
- restore-keys : |
29
- ${{runner.os}}-16-16-node-modules-
30
-
31
- - name : Install Dependencies
32
- run : yarn
33
-
34
- - name : Lint
35
- run : yarn lint
11
+ name : Lint
12
+ uses : the-guild-org/shared-config/.github/workflows/lint.yml@main
13
+ with :
14
+ script : yarn ci:lint
15
+ secrets :
16
+ githubToken : ${{ secrets.GITHUB_TOKEN }}
36
17
37
18
typecheck :
38
19
name : typecheck / graphql v${{matrix.graphql_version}}
@@ -47,18 +28,10 @@ jobs:
47
28
with :
48
29
fetch-depth : 0
49
30
50
- - name : Use Node
51
- uses : actions/setup-node@v3
52
- with :
53
- node-version : 18
54
-
55
- - name : Cache Yarn
56
- uses : actions/cache@v3
31
+ - name : Setup env
32
+ uses : the-guild-org/shared-config/setup@main
57
33
with :
58
- path : ' **/node_modules'
59
- key : ${{runner.os}}-16-${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
60
- restore-keys : |
61
- ${{runner.os}}-16-${{matrix.graphql_version}}-node-modules-
34
+ nodeVersion : 18
62
35
63
36
- name : Use GraphQL v${{matrix.graphql_version}}
64
37
run : node ./scripts/match-graphql.mjs ${{matrix.graphql_version}}
@@ -91,18 +64,10 @@ jobs:
91
64
with :
92
65
fetch-depth : 0
93
66
94
- - name : Use Node ${{matrix.node_version}}
95
- uses : actions/setup-node@v3
96
- with :
97
- node-version : ${{matrix.node_version}}
98
-
99
- - name : Cache Yarn
100
- uses : actions/cache@v3
67
+ - name : Setup env
68
+ uses : the-guild-org/shared-config/setup@main
101
69
with :
102
- path : ' **/node_modules'
103
- key : ${{runner.os}}-${{matrix.node_version}}-${{matrix.graphql_version}}-node-modules-${{hashFiles('yarn.lock')}}
104
- restore-keys : |
105
- ${{runner.os}}-${{matrix.node_version}}-${{matrix.graphql_version}}-node-modules-
70
+ nodeVersion : ${{matrix.node-version}}
106
71
107
72
- name : Use GraphQL v${{matrix.graphql_version}}
108
73
run : node scripts/match-graphql.mjs ${{matrix.graphql_version}}
0 commit comments