Skip to content

Merge pull request #187 from anupamme/fix-repo-polyscript-dependabot-… #1616

Merge pull request #187 from anupamme/fix-repo-polyscript-dependabot-…

Merge pull request #187 from anupamme/fix-repo-polyscript-dependabot-… #1616

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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # 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