File tree 1 file changed +58
-0
lines changed
1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Grunt tests
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ pull_request :
8
+ types :
9
+ - opened
10
+ - edited
11
+ - reopened
12
+ - synchronize
13
+
14
+ jobs :
15
+ grunt :
16
+ name : Grunt based tests with Node.js ${{ matrix.node-version }}
17
+
18
+ runs-on : ubuntu-latest
19
+ strategy :
20
+ matrix :
21
+ node-version : [12.x, 14.x]
22
+
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+
26
+ - uses : actions/setup-node@v1
27
+ with :
28
+ node-version : ${{ matrix.node-version }}
29
+
30
+ - name : Get npm cache directory
31
+ id : npm-cache-dir
32
+ run : |
33
+ echo "::set-output name=dir::$(npm config get cache)"
34
+
35
+ - name : Cache npm dependencies
36
+ uses : actions/cache@v2
37
+ with :
38
+ path : ${{ steps.npm-cache-dir.outputs.dir }}
39
+ key : ${{ runner.os }}-node-${{ matrix.node-version }}-npm-${{ hashFiles('**/package.json') }}
40
+ restore-keys : |
41
+ ${{ runner.os }}-node-${{ matrix.node-version }}-npm-
42
+ ${{ runner.os }}-node-${{ matrix.node-version }}-
43
+ ${{ runner.os }}-node-
44
+ ${{ runner.os }}-
45
+
46
+ - name : Install npm dependencies
47
+ run : npm install
48
+
49
+ - name : Run lint
50
+ run : node_modules/.bin/grunt lint
51
+
52
+ - name : Run RequireJS
53
+ run : node_modules/.bin/grunt requirejs
54
+
55
+ - name : Run Qunit
56
+ run : node_modules/.bin/grunt test
57
+
58
+
You can’t perform that action at this time.
0 commit comments