Merge pull request #94 from w3nl/renovate/eslint-plugin-n-17.x-lockfile #109
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Update APT | |
run: sudo apt update | |
- name: Install LibreOffice | |
run: sudo apt install libreoffice | |
- name: Install imagemagick | |
run: sudo apt install imagemagick ghostscript | |
- name: Change ImageMagick policy to allow pdf->png conversion. | |
run: sudo sed -i 's/^.*policy.*coder.*none.*PDF.*//' /etc/ImageMagick-6/policy.xml | |
- name: npm test | |
run: | | |
npm ci | |
npm test | |
env: | |
CI: true |