Update package json #72
Workflow file for this run
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: 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' |