Skip to content

ci: add canvas build dependencies to Node.js 22 pipeline on GitLab #191

ci: add canvas build dependencies to Node.js 22 pipeline on GitLab

ci: add canvas build dependencies to Node.js 22 pipeline on GitLab #191

Workflow file for this run

name: Node.js CI
on: push
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
node-version: [12, 14, 16, 18, 20, 22]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install canvas dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libcairo2-dev libgif-dev libpango1.0-dev
- name: Install NPM packages
run: cd "$GITHUB_WORKSPACE"/export-server && npm install
- name: Tests
run: cd "$GITHUB_WORKSPACE"/export-server && ./test.sh
if: matrix.node-version >= 18