47 lines
993 B
YAML
47 lines
993 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
verify:
|
|
name: Test and package
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
container:
|
|
image: mcr.microsoft.com/playwright:v1.65.1-noble
|
|
env:
|
|
CI: true
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Check release metadata and public API contract
|
|
run: npm run check:release
|
|
|
|
- name: Run structure, browser, and accessibility tests
|
|
run: npm run test:all
|
|
|
|
- name: Build distribution files
|
|
run: npm run build
|
|
|
|
- name: Check bundle size
|
|
run: npm run size
|
|
|
|
- name: Test the packed package as a consumer
|
|
run: npm run test:package
|
|
|
|
- name: Verify generated contracts are committed
|
|
run: git diff --exit-code -- utilities.css public-api.json
|
|
|
|
- name: Verify package contents
|
|
run: npm pack --dry-run
|