add missing dep #4419
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 CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x] | |
steps: | |
- uses: actions/checkout@master | |
- name: install system dependencies for canvas | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
pkg-config \ | |
libcairo2-dev \ | |
libpango1.0-dev \ | |
libpng-dev \ | |
libjpeg-dev \ | |
libgif-dev \ | |
librsvg2-dev | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install and test | |
run: | | |
yarn | |
yarn bootstrap | |
yarn lint | |
yarn test | |
env: | |
CI: true | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} #required | |
file: ./packages/rnv/coverage/clover.xml #optional | |
flags: rnvunittests #optional | |
name: rnv #optional |