Skip to content

Commit f6ae097

Browse files
committed
chore: Update CI workflow to include integration tests and adjust Node version usage
1 parent a60662d commit f6ae097

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ jobs:
3131
node-version: [lts/*, latest]
3232
os: [ubuntu-latest, windows-latest, macos-latest]
3333
runs-on: ${{ matrix.os }}
34+
steps:
35+
- name: Checkout the repository
36+
uses: actions/checkout@v3
37+
- name: Use Node ${{ matrix.node-version }}
38+
uses: actions/setup-node@v3
39+
with:
40+
node-version: ${{ matrix.node-version }}
41+
- name: Run library tests
42+
run: |
43+
npm ci
44+
npm run test:lib
45+
test-integration:
46+
name: Test (Integration)
47+
needs: [test-library]
48+
runs-on: ubuntu-latest
3449
services:
3550
redis:
3651
image: redis:7
@@ -45,11 +60,11 @@ jobs:
4560
steps:
4661
- name: Checkout the repository
4762
uses: actions/checkout@v3
48-
- name: Use Node ${{ matrix.node-version }}
63+
- name: Use Node lts/*
4964
uses: actions/setup-node@v3
5065
with:
51-
node-version: ${{ matrix.node-version }}
52-
- name: Run library tests
66+
node-version: lts/*
67+
- name: Run integration tests
5368
run: |
5469
npm ci
5570
npm run test:lib
@@ -58,7 +73,7 @@ jobs:
5873
REDIS_CLUSTER_PORT: 7000
5974
publish:
6075
name: Publish
61-
needs: [lint, test-library]
76+
needs: [lint, test-library, test-integration]
6277
if: startsWith(github.ref, 'refs/tags/v')
6378
runs-on: ubuntu-latest
6479
permissions:

0 commit comments

Comments
 (0)