Add vanilla rspack example #17
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: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: "24 03 * * SUN" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build-bokehjs: | |
name: Build bokehjs npm package | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Setup micromamba for node | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-name: node-env | |
create-args: >- | |
nodejs=22 | |
init-shell: bash | |
cache-environment: true | |
- name: Clone bokeh branch | |
run: | | |
git clone -b ianthomas23/bokehjs_examples_temp --single-branch --depth 1 https://github.com/bokeh/bokeh.git | |
- name: Build bokehjs | |
working-directory: bokeh/bokehjs | |
run: | | |
node make build | |
npm pack | |
- name: Upload bokehjs npm package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bokehjs-artifact | |
path: bokeh/bokehjs/bokeh-bokehjs-* | |
if-no-files-found: error | |
test: | |
name: Create and test examples | |
needs: build-bokehjs | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup micromamba for node | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-name: node-env | |
create-args: >- | |
nodejs=22 | |
init-shell: bash | |
cache-environment: true | |
- name: Unpack bokehjs artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: bokehjs-artifact | |
- name: | |
working-directory: ci | |
run: | | |
bash prepare_playwright.sh | |
- name: Upload test artifacts | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-artifact | |
path: | | |
ci/temp/ | |
!ci/temp/**/node_modules |