Skip to content

Example showing canvas->img rendering #383

Example showing canvas->img rendering

Example showing canvas->img rendering #383

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn install
- run: make
- uses: actions/upload-artifact@v4.3.0
with:
name: build-output
path: |
lib
examples/**/*.js
test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
react_version:
- '16'
- '17'
- '18'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn install
- name: Install React deps (@v${{ matrix.react_version }})
run: npm install --no-save --no-package-lock react@${{ matrix.react_version }} react-dom@${{ matrix.react_version }} react-test-renderer@${{ matrix.react_version }}
- run: yarn test
lint:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn install
- run: yarn lint
typecheck:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn install
- uses: actions/download-artifact@v4
with:
name: build-output
- run: yarn typecheck