Build Frontend Packages #3668
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: Build Frontend Packages | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
- cron: '0 2 * * 1-5' # run on weekdays at 2:00am UTC | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Base Setup | |
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- name: Install Dependencies | |
run: | | |
python -m pip install -U jupyterlab~=4.0 jupyter_packaging~=0.10 "notebook<7" | |
- name: Install the Voilà Preview JupyterLab extension | |
run: | | |
python -m pip install . | |
- name: Check the extensions are installed | |
run: | | |
jupyter nbextension list 2>&1 | grep -ie "voila/extension.*enabled" - | |
jupyter labextension list 2>&1 | grep -ie "@voila-dashboards/jupyterlab-preview.*enabled.*ok" - | |
jupyter server extension list 2>&1 | grep -ie "voila\.server_extension.*enabled" - | |
- name: Browser check | |
run: | | |
python -m jupyterlab.browser_check | |
- name: Lint | |
run: | | |
jlpm | |
jlpm run eslint:check | |
jlpm run prettier:check |