From 60b591b0d4e566de29b070b2720f8632f921fa1e Mon Sep 17 00:00:00 2001 From: Maxime GRIS Date: Fri, 25 Jun 2021 17:34:17 +0200 Subject: [PATCH] ref/action-xvfb-linux --- .github/workflows/ubuntu.yml | 15 +++++++++++---- src/app/core/services/electron/electron.service.ts | 1 - 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index be6aa19..9cea1fd 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -22,7 +22,7 @@ jobs: node-version: [12.x, 14.x, 15.x] # The type of runner that the job will run on - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 @@ -44,13 +44,20 @@ 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: Build the app run: npm run electron:build + - name: Run headless unit test + uses: GabrielBB/xvfb-action@v1 + with: + run: npm test + + - name: Run headless e2e test + uses: GabrielBB/xvfb-action@v1 + with: + run: npm run e2e + diff --git a/src/app/core/services/electron/electron.service.ts b/src/app/core/services/electron/electron.service.ts index 4c3e259..592ae24 100644 --- a/src/app/core/services/electron/electron.service.ts +++ b/src/app/core/services/electron/electron.service.ts @@ -34,7 +34,6 @@ export class ElectronService { // it must be declared in dependencies of both package.json (in root and app folders) // If you want to use remote object in renderer process, please set enableRemoteModule to true in main.ts this.remote = window.require('@electron/remote'); - console.log('remote - globalShortcut', this.remote.globalShortcut); } } }