Skip to content

Bump actions/setup-node from 2.1.3 to 4.1.0 #1167

Bump actions/setup-node from 2.1.3 to 4.1.0

Bump actions/setup-node from 2.1.3 to 4.1.0 #1167

Workflow file for this run

name: Python tests and Node.js build
on: [push, pull_request]
jobs:
build-python:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- uses: snok/[email protected]
- name: Install all extra features of poetry
run: poetry install --extras "dev"
- name: Test with pytest
run: poetry run pytest
build-node:
env:
# Webpack uses around 2GB to build, which is more than the default heap size. We bump it to 4 GB here just in case
NODE_OPTIONS: "--max-old-space-size=4096"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Test build
run: npm run build