-
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (44 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
47 lines (44 loc) · 1.23 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# Electron build for windows
# - name: install wine
# run: sudo apt-get install wine
- name: export display
run: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
- name: install
run: npm install
- name: test
run: npm run test
env:
CI: true
DISPLAY: ':99.0'
- name: Run cypress (acceptance tests)
uses: cypress-io/github-action@v2
env:
CYPRESS_BASE_URL: 'http://localhost:3000'
with:
wait-on: 'http://localhost:3000'
start: npm start
- name: package
run: npm run package
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
# - name: distribute for linux 64
# uses: actions/upload-artifact@v2
# with:
# name: archive-electron-platform
# path: dist/json-tool-0.1.0.AppImage