Skip to content

Commit

Permalink
ref/action-xvfb-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime GRIS committed Jun 25, 2021
1 parent e8f36a3 commit 60b591b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

1 change: 0 additions & 1 deletion src/app/core/services/electron/electron.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 60b591b

Please sign in to comment.