-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (33 loc) · 1.07 KB
/
Copy pathexamples-testing.yml
File metadata and controls
35 lines (33 loc) · 1.07 KB
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
29
30
31
32
33
34
35
name: Examples smoke testing
on:
pull_request:
paths:
- 'src/**'
- 'examples/**'
- 'package.json'
branches:
- main
types: [opened, reopened, synchronize, ready_for_review]
jobs:
examples:
name: Generate every example against the PR build
runs-on: ubuntu-latest
if: "github.event.pull_request.draft == false"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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@v4
with:
node-version: "${{ steps.lockversion.outputs.version }}"
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install root dependencies
run: npm ci
- name: Smoke-test every example
# Builds + packs the CLI and generates every example against it. The
# exact same command runs locally: `npm run test:examples`.
run: npm run test:examples