Skip to content

feat(node): new unified code snippet for both the webhook and metrics #2868

feat(node): new unified code snippet for both the webhook and metrics

feat(node): new unified code snippet for both the webhook and metrics #2868

Workflow file for this run

name: nodejs
on:
push:
branches:
- main
pull_request:
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci --ignore-scripts
- run: make test-metrics-node-express
- run: make test-metrics-node-hapi
- run: make test-metrics-node-fastify
- run: make test-webhooks-node-express
- name: Cleanup
if: always()
run: docker-compose down
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/node
strategy:
fail-fast: false
matrix:
node-version:
- 18
- 20
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci --ignore-scripts
- run: npm test
# This is being run separately since it's not playing nicely with Node 14.
# Once we drop Node 14 support we can probably consolidate this again.
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/node
steps:
- uses: actions/checkout@v3
- run: npm ci --ignore-scripts
- run: npm run lint