ref/action-xvfb-linux
This commit is contained in:
15
.github/workflows/ubuntu.yml
vendored
15
.github/workflows/ubuntu.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user