This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
fix: update readme and example #21
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: Continuous Integration | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
test-and-build: | |
runs-on: ubuntu-latest | |
name: Test and build loader | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run security | |
- name: Build loader | |
run: npm run build | |
- name: Start Xvfb | |
run: | | |
Xvfb :99 -screen 0 1024x768x24 & | |
export DISPLAY=:99 | |
- name: Test | |
env: | |
DISPLAY: :99 | |
run: | | |
sudo apt update && sudo apt install -y libxtst-dev libpng-dev | |
npm test |