-
Notifications
You must be signed in to change notification settings - Fork 41
28 lines (28 loc) · 879 Bytes
/
ci.yml
File metadata and controls
28 lines (28 loc) · 879 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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Start Redis
uses: supercharge/redis-github-action@1.1.0
with:
redis-version: "5"
- name: Setup Rabbitmq
uses: nijel/rabbitmq-action@v1.0.0
- name: Setup NATS
run: |
wget https://github.com/nats-io/nats-server/releases/download/v2.0.0/nats-server-v2.0.0-linux-amd64.zip
unzip nats-server-v2.0.0-linux-amd64.zip
nats-server-v2.0.0-linux-amd64/nats-server </dev/null &>/dev/null &
- run: sleep 30
- run: npm ci
- run: npm test