Skip to content

Commit ae9b9e4

Browse files
committed
fixed github actions workflow
1 parent 85576f7 commit ae9b9e4

File tree

1 file changed

+23
-34
lines changed

1 file changed

+23
-34
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,27 @@ name: CI
33
on: [push]
44

55
jobs:
6-
# build:
7-
# runs-on: ${{ matrix.os }}
8-
# strategy:
9-
# matrix:
10-
# os: [ubuntu-latest, windows-latest, macOS-latest]
11-
# steps:
12-
# - uses: actions/checkout@master
13-
# - name: Start xvfb
14-
# if: runner.os == 'Linux'
15-
# run: |
16-
# set -e
17-
# /usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
18-
# disown -ar
19-
# - name: Use Node.js
20-
# uses: actions/setup-node@master
21-
# with:
22-
# version: 10
23-
# - run: npm install
24-
# - run: npm run compile
25-
# - run: npm run test
26-
# env:
27-
# DISPLAY: :10
28-
# - run: npm run package
29-
# if: runner.os == 'Linux'
30-
publish:
31-
# needs: build
32-
runs-on: ubuntu-latest
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macOS-latest]
3311
steps:
34-
- uses: actions/checkout@master
35-
- run: ls -la
36-
- uses: daimor/actions/hub@master
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
with:
40-
args: release
12+
- uses: actions/checkout@master
13+
- name: Start xvfb
14+
if: runner.os == 'Linux'
15+
run: |
16+
set -e
17+
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
18+
disown -ar
19+
- name: Use Node.js
20+
uses: actions/setup-node@master
21+
with:
22+
version: 10
23+
- run: npm install
24+
- run: npm run compile
25+
- run: npm run test
26+
env:
27+
DISPLAY: :10
28+
- run: npm run package
29+
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)