Skip to content

Using Pyodide lockFileURL + packages when a cache exists #1036

Using Pyodide lockFileURL + packages when a cache exists

Using Pyodide lockFileURL + packages when a cache exists #1036

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: python -m venv env
- run: source env/bin/activate
- run: pip install --upgrade pip
- run: pip install --ignore-requires-python python-minifier
- run: pip install setuptools
- run: npm ci
- run: npx playwright install chromium
- run: npm run build
- run: npm run test