-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (32 loc) · 812 Bytes
/
test.yml
File metadata and controls
40 lines (32 loc) · 812 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
name: test
on:
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Install Redis
run: |
sudo add-apt-repository ppa:redislabs/redis
sudo apt-get install -y redis-tools redis-server
- name: Check Redis
run: redis-cli ping
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- name: npm ci
run: npm ci
- name: npm check
run: npm run check
- name: npm test
run: npm run test