Skip to content

Fix vuln

Fix vuln #94

Workflow file for this run

name: Test
on: [push]
jobs:
test:
name: Test
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: "package-lock.json"
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install dependencies
run: |
npm install
gem install htmlbeautifier
- name: Run headless test (${{ matrix.os }})
run: xvfb-run -a npm test
if: runner.os == 'Linux'
- name: Run headless test (${{ matrix.os }})
run: npm test
if: runner.os != 'Linux'