Skip to content

Update node.js.yml

Update node.js.yml #2

Workflow file for this run

name: WebFreeze CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Puppeteer dependencies
run: sudo apt-get install -y libgbm-dev
- name: Run linter
run: npm run lint || echo "Linting failed but continuing..."
- name: Run tests
run: npm test || echo "No tests specified"