-
Notifications
You must be signed in to change notification settings - Fork 12
33 lines (31 loc) · 875 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
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'