File tree 1 file changed +69
-0
lines changed
1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ # the test suite runs the tests (headless, server+client) for multiple Meteor releases
2
+ name : Test suite
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+
9
+ jobs :
10
+ lint :
11
+ name : Javascript standard lint
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : checkout
15
+ uses : actions/checkout@v3
16
+
17
+ - name : setup node
18
+ uses : actions/setup-node@v3
19
+ with :
20
+ node-version : 20
21
+
22
+ - name : cache dependencies
23
+ uses : actions/cache@v3
24
+ with :
25
+ path : ~/.npm
26
+ key : ${{ runner.os }}-node-20-${{ hashFiles('**/package-lock.json') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-node-20-
29
+
30
+ - run : |
31
+ npm ci
32
+ npm run lint
33
+
34
+ test :
35
+ name : Meteor package tests
36
+ # needs: [lint]
37
+ runs-on : ubuntu-latest
38
+ strategy :
39
+ matrix :
40
+ meteorRelease :
41
+ - ' 3.0.1'
42
+ steps :
43
+ - name : Checkout code
44
+ uses : actions/checkout@v3
45
+
46
+ - name : Install Node.js
47
+ uses : actions/setup-node@v3
48
+ with :
49
+ node-version : 20
50
+
51
+ - name : Setup meteor ${{ matrix.meteorRelease }}
52
+ uses : meteorengineer/setup-meteor@v1
53
+ with :
54
+ meteor-release : ${{ matrix.meteorRelease }}
55
+
56
+ - name : cache dependencies
57
+ uses : actions/cache@v3
58
+ with :
59
+ path : ~/.npm
60
+ key : ${{ runner.os }}-node-20-${{ hashFiles('**/package-lock.json') }}
61
+ restore-keys : |
62
+ ${{ runner.os }}-node-20-
63
+
64
+ - name : Install test dependencies
65
+ run : npm ci
66
+
67
+
68
+ - name : Run tests
69
+ run : meteor npm run test
You can’t perform that action at this time.
0 commit comments