Skip to content

chore: fix npm for Node v18 samples tests #1213

chore: fix npm for Node v18 samples tests

chore: fix npm for Node v18 samples tests #1213

Workflow file for this run

on:
push:
branches:
- master
pull_request:
name: ci
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18, 20]
# Docker containers to run for database RPC tracing integration tests.
services:
mongo:
image: mongo:5
ports:
- 27017:27017
mysql:
image: mysql:5
env:
MYSQL_ROOT_PASSWORD: Password12!
MYSQL_DATABASE: test
ports:
- 3306:3306
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: Password12!
POSTGRES_DB: test
ports:
- 5432:5432
redis:
image: redis
ports:
- 6379:6379
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: node --version
- run: npm install
- run: npm test
windows:
runs-on: windows-latest
env:
# GitHub Actions does not support running services alongside Windows.
# This flag disables integration tests.
TRACE_TEST_EXCLUDE_INTEGRATION: 1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm run lint
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm run docs-test
license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm run license-check