Skip to content

Commit faaf401

Browse files
Convert workflow to LF and use xvfb from the agent
This should work.
1 parent 1d3d5ce commit faaf401

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
name: main
2-
on: push
3-
4-
jobs:
5-
build:
6-
strategy:
7-
matrix:
8-
os: [macos-latest, ubuntu-latest, windows-latest]
9-
runs-on: ${{matrix.os}}
10-
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v3
13-
- name: Install Node.js
14-
uses: actions/setup-node@v1
15-
with:
16-
node-version: 8.x
17-
- run: npm install
18-
- name: Run tests
19-
uses: GabrielBB/[email protected]
20-
with:
21-
run: npm test
1+
name: main
2+
on: push
3+
4+
jobs:
5+
build:
6+
strategy:
7+
matrix:
8+
os: [macos-latest, ubuntu-latest, windows-latest]
9+
runs-on: ${{matrix.os}}
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Install dependencies
15+
run: npm install
16+
17+
- name: Run tests
18+
run: |
19+
export DISPLAY=":0"
20+
xvfb-run --auto-servernum npm test

0 commit comments

Comments
 (0)