fix: github action
This commit is contained in:
5
.github/workflows/macos.yml
vendored
5
.github/workflows/macos.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x, 16.x, 17.x]
|
||||
node-version: [16]
|
||||
|
||||
# The type of runner that the job will run on
|
||||
runs-on: macos-latest
|
||||
@@ -44,9 +44,12 @@ jobs:
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm i && npm i -D cli-truncate
|
||||
|
||||
- name: Check lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Build the app
|
||||
run: npm run electron:build
|
||||
|
||||
15
.github/workflows/ubuntu.yml
vendored
15
.github/workflows/ubuntu.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x, 16.x, 17.x]
|
||||
node-version: [16]
|
||||
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-18.04
|
||||
@@ -44,20 +44,27 @@ jobs:
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install linux dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm i
|
||||
|
||||
- name: Check lint
|
||||
run: npm run lint
|
||||
- name: Build the app
|
||||
run: npm run electron:build
|
||||
|
||||
- name: Run headless unit test
|
||||
uses: GabrielBB/xvfb-action@v1
|
||||
with:
|
||||
run: npm test
|
||||
run: npm run test
|
||||
|
||||
- name: Run headless e2e test
|
||||
uses: GabrielBB/xvfb-action@v1
|
||||
with:
|
||||
run: npm run e2e
|
||||
|
||||
- name: Build the app
|
||||
run: npm run electron:build
|
||||
|
||||
11
.github/workflows/windows.yml
vendored
11
.github/workflows/windows.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x, 16.x, 17.x]
|
||||
node-version: [16]
|
||||
|
||||
# The type of runner that the job will run on
|
||||
runs-on: windows-latest
|
||||
@@ -44,9 +44,18 @@ jobs:
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm i
|
||||
|
||||
- name: Check lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Run headless unit test
|
||||
run: npm run test
|
||||
|
||||
- name: Run headless e2e test
|
||||
run: npm run e2e
|
||||
|
||||
- name: Build the app
|
||||
run: npm run electron:build
|
||||
|
||||
Reference in New Issue
Block a user