-
Notifications
You must be signed in to change notification settings - Fork 71
37 lines (37 loc) · 1.04 KB
/
testing.yaml
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
name: Testing
on:
pull_request:
branches:
- main
jobs:
test:
name: Node ${{ matrix.node_version }}
runs-on: ubuntu-22.04
strategy:
matrix:
node_version:
- 16
- 18
- 20
- 22
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
check-latest: true
architecture: x64
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8
- name: Run docker-compose
uses: hoverkraft-tech/[email protected]
with:
compose-file: './compose.yaml'
- run: docker compose exec cluster-m1 redis-cli -a mycluster --cluster create 127.0.0.1:7380 127.0.0.1:7381 127.0.0.1:7382 --cluster-yes
- run: pnpm install --frozen-lockfile
- run: pnpm -F "@liaoliaots/nestjs-redis" lint
- run: pnpm -F "@liaoliaots/nestjs-redis" test
- run: pnpm -F "@liaoliaots/nestjs-redis" test:e2e