Generate Interfaces.ts with babel #472
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Tests Build | |
on: | |
schedule: | |
- cron: '0 10 * * *' | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.74.0 | |
- uses: actions/setup-node@v4.0.0 | |
with: | |
node-version: 18.16.0 | |
- name: Install Node.js dependencies | |
run: | | |
npm ci && npx tsc --version | |
- name: Generate interfaces.ts | |
run: | | |
npm run generate-interfaces | |
- name: Build bindings | |
run: | | |
npm run bindings | |
- name: Run Integration Tests | |
run: | | |
npm run headless-bin -- ./fixtures/simple.xsml | |
npm run headless-bin -- ./fixtures/spatial-element.xsml | |
npm run headless-bin -- ./fixtures/spatial-polyhedra-element.xsml | |
npm run headless-bin -- ./fixtures/esm/script-with-src.xsml | |
npm run headless-bin -- ./fixtures/esm/script-inline.xsml | |
npm run headless-bin -- ./fixtures/esm/http-imports.xsml | |
npm run headless-bin -- ./fixtures/custom-loader/custom-resolve.xsml | |
npm run headless-bin -- ./fixtures/custom-loader/custom-load.xsml | |
npm run headless-bin -- ./fixtures/scripts-in-xml/inline-scripts.xsml | |
npm run headless-bin -- ./fixtures/scripts-in-xml/external-async-scripts.xsml | |
npm run headless-bin -- ./fixtures/scripts-in-xml/external-blocking-scripts.xsml | |
npm run headless-bin -- ./fixtures/css/spatial-basic.xsml | |
npm run headless-bin -- ./fixtures/css/spatial-material-bumpmap.xsml | |
npm run headless-bin -- ./fixtures/dom/globals-in-script.xsml |