Skip to content

ci(cypress): add free up disk space step #1573

ci(cypress): add free up disk space step

ci(cypress): add free up disk space step #1573

Workflow file for this run

name: Examples
on: [push,pull_request]
jobs:
test-node-example:
name: node-js
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./examples/node-js
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install
run: |
npm install
- name: Test
run: |
npm run test
build-hello-world-example:
name: hello-world build
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./examples/hello-world
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install
run: |
npm install
- name: Build
run: |
npm run build
- name: Save wasm builds
uses: actions/upload-artifact@v3
with:
name: hello-world-build
if-no-files-found: error
path: |
examples/hello-world/emscripten-build
examples/hello-world/wasi-build
test-hello-world-example:
name: hello-world test
needs: build-hello-world-example
runs-on: ubuntu-22.04
container: cypress/browsers:node18.12.0-chrome107
defaults:
run:
working-directory: ./examples/hello-world
steps:
- uses: actions/checkout@v3
- name: Load wasm builds
uses: actions/download-artifact@v3
with:
name: hello-world-build
path: examples/hello-world
- name: Test
uses: cypress-io/github-action@v6
with:
working-directory: ./examples/hello-world
browser: chrome
start: npm start
build-test-hello-pipeline-example:
name: hello-pipeline build test
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./examples/hello-pipeline
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install
run: |
npm install
- name: Build
run: |
npm run build
- name: Test
run: |
npm run test
npm run test:quiet
npm run test:help
build-test-inputs-outputs-example:
name: inputs-outputs
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./examples/inputs-outputs
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install
run: |
npm install
- name: Build
run: |
npm run build
- name: Test
run: |
npm run test
test-umd-example:
name: umd
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- name: Test
uses: cypress-io/github-action@v6
with:
working-directory: ./examples/umd
browser: chrome
start: npm start
test-webpack-example:
name: webpack
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- name: Test Webpack Example on Chrome
uses: cypress-io/github-action@v6
with:
working-directory: ./examples/webpack
browser: chrome
start: npm start
#- name: Test Webpack Example on Firefox
#uses: cypress-io/github-action@v6
#with:
#working-directory: ./examples/webpack
#browser: firefox
#start: npm start
test-vite-example:
name: vite
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- name: Test Vite Example on Chrome
uses: cypress-io/github-action@v6
with:
working-directory: ./examples/vite
browser: chrome
start: npm start
#- name: Test Vite Example on Firefox
#uses: cypress-io/github-action@v6
#with:
#working-directory: ./examples/vite
#browser: firefox
#start: npm start
test-debugging-example:
name: debugging
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./examples/debugging
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install
run: |
npm install
- name: Build
run: |
npm run native-build
npm run emscripten-build-release
npm run emscripten-build-debug
npm run wasi-build-debug
test-different-input-types-example:
name: different-input-types
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./examples/different-input-types
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install
run: |
npm install
- name: Build
run: |
npm run build
- name: Test
run: |
npm run test
test-mean-squares-versor-registration:
name: mean-squares-versor-registration
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./examples/mean-squares-versor-registration
steps:
- uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install
run: |
npm install
- name: Build
run: |
npm run build
- name: Build TypeScript/JavaScript bindings
run: |
cd typescript
npm install
npm run build