This is a simple hello world example of using @pixi/node
. This package is a lot like pixi.js
, but excludes
the DOM-specific behaviors, including interaction, accessibility.
@pixi/node
can be run on GitHub Actions. There's a complete example here in nodejs.yml. There are two essential ingredients:
- Installing the canvas dependencies as described in node-canvas
- Running with XVFB
For example:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Canvas Dependencies
run: sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
# <-- checkout, install node, etc here
- name: Execute
uses: GabrielBB/[email protected]
with:
# Or whatever your excutable call is
run: node .
Node: See GitHub Actions documentation for more information.