Skip to content

Commit edb6f2a

Browse files
committed
set github actions
1 parent e6d0aa6 commit edb6f2a

File tree

6 files changed

+20401
-2
lines changed

6 files changed

+20401
-2
lines changed

Diff for: .github/workflows/macos.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: 'MacOS Build'
3+
4+
# Controls when the action will run.
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the master branch
7+
push:
8+
branches:
9+
- master
10+
- github-actions
11+
pull_request:
12+
branches:
13+
- master
14+
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
18+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
19+
jobs:
20+
build:
21+
strategy:
22+
matrix:
23+
node-version: [10.13.0, 12.x, 14.x, 15.x]
24+
25+
# The type of runner that the job will run on
26+
runs-on: macos-latest
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
31+
- name: Cache node modules
32+
uses: actions/cache@v2
33+
env:
34+
cache-name: cache-node-modules
35+
with:
36+
# npm cache files are stored in `~/.npm` on Linux/macOS
37+
path: ~/.npm
38+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
39+
restore-keys: |
40+
${{ runner.os }}-build-${{ env.cache-name }}-
41+
${{ runner.os }}-build-
42+
${{ runner.os }}-
43+
44+
- name: Use Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@v1
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
- name: Install Dependencies
49+
run: npm i
50+
- name: Check lint
51+
run: npm run lint
52+
- name: Build the app
53+
run: npm run electron:build

Diff for: .github/workflows/ubuntu.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: 'Linux Build'
3+
4+
# Controls when the action will run.
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the master branch
7+
push:
8+
branches:
9+
- master
10+
- github-actions
11+
pull_request:
12+
branches:
13+
- master
14+
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
18+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
19+
jobs:
20+
build:
21+
strategy:
22+
matrix:
23+
node-version: [10.13.0, 12.x, 14.x, 15.x]
24+
25+
# The type of runner that the job will run on
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
31+
- name: Cache node modules
32+
uses: actions/cache@v2
33+
env:
34+
cache-name: cache-node-modules
35+
with:
36+
# npm cache files are stored in `~/.npm` on Linux/macOS
37+
path: ~/.npm
38+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
39+
restore-keys: |
40+
${{ runner.os }}-build-${{ env.cache-name }}-
41+
${{ runner.os }}-build-
42+
${{ runner.os }}-
43+
44+
- name: Use Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@v1
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
49+
- name: Install Dependencies
50+
run: npm i
51+
52+
- name: Check lint
53+
run: npm run lint
54+
55+
- name: Build the app
56+
run: npm run electron:build
57+
58+
- name: Run headless unit test
59+
uses: GabrielBB/xvfb-action@v1
60+
with:
61+
run: npm test
62+
63+
- name: Run headless unit test
64+
uses: GabrielBB/xvfb-action@v1
65+
with:
66+
run: npm run e2e

Diff for: .github/workflows/windows.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: 'Windows Build'
3+
4+
# Controls when the action will run.
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the master branch
7+
push:
8+
branches:
9+
- master
10+
- github-actions
11+
pull_request:
12+
branches:
13+
- master
14+
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
18+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
19+
jobs:
20+
build:
21+
strategy:
22+
matrix:
23+
node-version: [10.13.0, 12.x, 14.x, 15.x]
24+
25+
# The type of runner that the job will run on
26+
runs-on: windows-latest
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
31+
- name: Cache node modules
32+
uses: actions/cache@v2
33+
env:
34+
cache-name: cache-node-modules
35+
with:
36+
# npm cache files are stored in `~/.npm`
37+
path: ~/.npm
38+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
39+
restore-keys: |
40+
${{ runner.os }}-build-${{ env.cache-name }}-
41+
${{ runner.os }}-build-
42+
${{ runner.os }}-
43+
44+
- name: Use Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@v1
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
- name: Install Dependencies
49+
run: npm i
50+
- name: Check lint
51+
run: npm run lint
52+
- name: Build the app
53+
run: npm run electron:build

Diff for: .gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ src/**/*.js
3838
npm-debug.log
3939
testem.log
4040
/typings
41-
package-lock.json
4241

4342
# e2e
4443
/e2e/*.js

0 commit comments

Comments
 (0)