You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
diagrams/.github/workflows/playground.yml

39 lines
1014 B

name: Playground
on:
pull_request:
paths:
- "playground/**"
- "diagrams/**"
- "resources/**"
- ".github/workflows/playground.yml"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install python deps
run: pip install . pytest
- name: Python tests (catalog + shim)
run: python3 -m pytest playground/scripts/ -v
- name: Generate assets
run: python3 playground/scripts/gen_catalog.py --repo-root . --out playground/public
- name: npm install & unit tests & build
working-directory: playground
run: |
npm ci
npm test
npm run build
- name: E2E smoke
working-directory: playground
run: |
npx playwright install chromium --with-deps
npm run e2e