File tree Expand file tree Collapse file tree 2 files changed +45
-19
lines changed Expand file tree Collapse file tree 2 files changed +45
-19
lines changed Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ types : [opened, synchronize]
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ services :
13
+ redis :
14
+ image : redis
15
+ ports :
16
+ - 6379:6379
17
+ redis-cluster :
18
+ image : grokzen/redis-cluster:latest
19
+ ports :
20
+ - 7000:7000
21
+ - 7001:7001
22
+ - 7002:7002
23
+ - 7003:7003
24
+ - 7004:7004
25
+ - 7005:7005
26
+ strategy :
27
+ matrix :
28
+ node-version : [lts/*]
29
+
30
+ steps :
31
+ - name : Checkout
32
+ uses : actions/checkout@v2
33
+
34
+ - name : Setup node
35
+ uses : actions/setup-node@v2
36
+ with :
37
+ node-version : ${{ matrix.node-version }}
38
+ cache : ' npm'
39
+
40
+ - name : Install dependencies
41
+ run : npm ci
42
+
43
+ - name : Test
44
+ run : npm test
45
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments