fix: github action

This commit is contained in:
Maxime GRIS
2022-03-13 15:31:06 +01:00
parent 1f0ba3448c
commit d6b578499d
6 changed files with 29 additions and 46 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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