Skip to content

feat: add http_server protocol for generating typed Express handler stubs #814

feat: add http_server protocol for generating typed Express handler stubs

feat: add http_server protocol for generating typed Express handler stubs #814

name: Blackbox testing (Stay Awhile and Listen)
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
jobs:
test:
name: BlackBox testing - ${{ matrix.bucket }}
if: "github.event.pull_request.draft == false &&!((github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'ci: update global workflows')) || (github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'chore(release):')) || (github.actor == 'allcontributors' && startsWith(github.event.pull_request.title, 'docs: add')))"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The full config x file matrix is sharded into config buckets so
# no single job runs the whole (npm-install-heavy) cross-product. Each
# bucket lists config-name substrings (see test/blackbox/test_files.ts).
include:
- bucket: channels
configs: 'channels'
- bucket: client
configs: 'client'
- bucket: models
configs: 'payload,modelina'
- bucket: headers-params-jsonschema
configs: 'headers,parameters,jsonschema'
- bucket: openapi
configs: 'openapi'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check package-lock version
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
id: lockversion
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "${{ steps.lockversion.outputs.version }}"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Build library
run: npm install && npm run build
- name: Test output
env:
BLACKBOX_CONFIG: ${{ matrix.configs }}
run: npm run test:blackbox