Skip to content

Add an example of subscribing and unsubscribing in API using Set #32

Add an example of subscribing and unsubscribing in API using Set

Add an example of subscribing and unsubscribing in API using Set #32

Workflow file for this run

name: Testing CI
on:
- pull_request
- push # not for landing
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node:
- 16
- 18
- 19
- 20
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Start db docker containers
run: |
docker-compose -f test-db-docker-compose.yml up -d
sleep 10 # wait for database to be ready
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm test
- name: Client test
run: |
node server.js > /dev/null&
sleep 4 # wait for api to be ready
node test/system.js
node --test test/client.js