-
Notifications
You must be signed in to change notification settings - Fork 134
45 lines (38 loc) · 794 Bytes
/
test.yml
File metadata and controls
45 lines (38 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: test
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
redis-cluster:
image: grokzen/redis-cluster:7.0.10
ports:
- 7006:7000
- 7001:7001
- 7002:7002
- 7003:7003
- 7004:7004
- 7005:7005
strategy:
matrix:
node-version: [lts/*]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Test
run: npm test