-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (46 loc) · 1.48 KB
/
ci.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on: [push, pull_request]
jobs:
test_unix:
name: ${{ matrix.os-version }}, Node ${{ matrix.node-version }}, Redis ${{ matrix.redis-version }}
runs-on: ${{ matrix.os-version }}
strategy:
matrix:
os-version: [ubuntu-latest, macos-latest]
node-version: ["14", "16", "18"]
redis-version: [6]
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: ${{ matrix.redis-version }}
- run: npm install
- run: npm test
env:
CI: true
# Testing Windows separately because Github CI does not support Redis on Windows. Sigh.
# We skip BullMQ (Redis-backed) integration test on Windows using `if (process.platform === "win32")`
test_windows:
name: Node ${{ matrix.node-version }}, ${{ matrix.os-version }}
runs-on: ${{ matrix.os-version }}
strategy:
matrix:
os-version: [windows-latest]
node-version: ["14", "16", "18"]
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true