44 lines
1000 B
YAML
44 lines
1000 B
YAML
name: web-platform-ci
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
quality:
|
|
name: TypeScript, lint, unit, build
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: npm
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.12'
|
|
cache: pip
|
|
- run: npm install --global npm@11.17.0
|
|
- run: npm ci
|
|
- run: python -m pip install -r requirements-dev.txt
|
|
- run: npm run lint:python
|
|
- run: npm run check
|
|
|
|
e2e:
|
|
name: Playwright E2E
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: npm
|
|
- run: npm install --global npm@11.17.0
|
|
- run: npm ci
|
|
- run: npx playwright install --with-deps chromium
|
|
- run: npm run build
|
|
- run: npm run test:e2e
|