Expose aggressiveRenaming in the website and Node API with a default-off setting. Extend the seeded mapping to VM methods, internal fields and core block packages. Scope thread status separately from external response status and reserve native platform properties. Add differential and browser coverage for the new mode.
78 lines
2.0 KiB
YAML
78 lines
2.0 KiB
YAML
name: Deploy to GitHub Pages
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: "deploy"
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
defaults:
|
|
run:
|
|
working-directory: tw-packager
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
path: tw-packager
|
|
- uses: ./tw-packager/.github/actions/setup-specialized
|
|
with:
|
|
vm-ref: ${{ vars.SPECIALIZED_VM_REF }}
|
|
- name: Test
|
|
run: |
|
|
npm test -- --runInBand
|
|
npm run build-node-prod
|
|
npm run test:specialized
|
|
node test/specialized-differential.mjs --linked
|
|
npm run test:specialized-aggressive
|
|
npm run test:specialized-build
|
|
node test/specialized-worker-input.mjs
|
|
npx playwright install --with-deps chromium firefox webkit
|
|
npm run test:specialized-browser
|
|
node test/specialized-build.mjs --aggressive
|
|
node test/specialized-worker-input.mjs --aggressive
|
|
npm run test:specialized-browser
|
|
npm run test:specialized-performance
|
|
- name: Build website
|
|
run: |
|
|
mkdir -p web
|
|
npm run build-prod
|
|
cp -r dist/* web
|
|
env:
|
|
ENABLE_SERVICE_WORKER: "1"
|
|
- name: Build standalone
|
|
run: |
|
|
npm run build-standalone-prod
|
|
node test/specialized-standalone.mjs
|
|
cp dist/standalone.html web
|
|
- name: Configure GitHub Pages
|
|
uses: actions/configure-pages@v5
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v4
|
|
with:
|
|
path: ./tw-packager/web/
|
|
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
needs: build
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|