Skip to content

Commit 2d33941

Browse files
committed
ci: run tests
1 parent b14428f commit 2d33941

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [22.x]
16+
redis-version: [7]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
- name: Use Redis ${{ matrix.redis-version }}
26+
uses: supercharge/redis-github-action@1.8.0
27+
with:
28+
redis-version: ${{ matrix.redis-version }}
29+
- run: npm ci
30+
- run: npm run build --if-present
31+
- run: npm test

0 commit comments

Comments
 (0)