File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - website-redesign-rfc
8
+ tags :
9
+ - v[0-9]+.[0-9]+.[0-9]+
10
+ pull_request :
11
+
12
+ env :
13
+ NODE_VERSION : 10
14
+
15
+ jobs :
16
+ lint :
17
+ name : Lint files
18
+ runs-on : ubuntu-latest
19
+ timeout-minutes : 3
20
+ steps :
21
+ - name : Check out a copy of the repo
22
+ uses : actions/checkout@v2
23
+
24
+ - name : Use Node.js ${{ env.NODE_VERSION }}
25
+ uses : actions/setup-node@v2-beta
26
+ with :
27
+ node-version : ${{ env.NODE_VERSION }}
28
+
29
+ - name : Cache npm cache and node_modules
30
+ id : cache-dependencies
31
+ uses : actions/cache@v2
32
+ with :
33
+ path : |
34
+ ~/.npm
35
+ node_modules
36
+ key : ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
37
+ restore-keys : ${{ runner.os }}-${{ env.NODE_VERSION }}-
38
+
39
+ - name : Install dependencies
40
+ run : npm install
41
+ if : steps.cache-dependencies.outputs.cache-hit != 'true'
42
+
43
+ - name : Lint
44
+ run : npm run lint
You can’t perform that action at this time.
0 commit comments