Skip to content

Commit d515796

Browse files
authored
test(ci): use github actions Linux container (#782)
- with the electron@11 fixes now in `master`, this might actually pass. - dropped Travis and updated README's badge. - adjusted xvfb to 1024x768 by default. closes #719
1 parent 1510a9b commit d515796

File tree

5 files changed

+4
-20
lines changed

5 files changed

+4
-20
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
os: [windows-latest, macOS-latest]
16+
os: [ubuntu-latest, windows-latest, macOS-latest]
1717
node-version: [12.x]
1818

1919
steps:

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# <img src="https://cloud.githubusercontent.com/assets/378023/15063284/cf544f2c-1383-11e6-9336-e13bd64b1694.png" width="60px" align="center" alt="Spectron icon"> Spectron
22

3-
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/iv8xd919q6b44pap/branch/master?svg=true)](https://ci.appveyor.com/project/kevinsawicki/spectron/branch/master) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
3+
[![CI](https://github.com/electron-userland/spectron/workflows/CI/badge.svg)](https://github.com/electron-userland/spectron/actions) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
44
[![dependencies](https://img.shields.io/david/electron/spectron.svg)](https://david-dm.org/electron/spectron) [![license:mit](https://img.shields.io/badge/license-mit-blue.svg)](https://opensource.org/licenses/MIT) [![npm:](https://img.shields.io/npm/v/spectron.svg)](https://www.npmjs.com/package/spectron) [![downloads](https://img.shields.io/npm/dm/spectron.svg)](https://www.npmjs.com/package/spectron)
55

66
Easily test your [Electron](http://electron.atom.io) apps using

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prepare": "check-for-leaks",
1111
"prepush": "check-for-leaks",
1212
"pretest": "tsc lib/spectron.d.ts",
13-
"test": "npm run lint && xvfb-maybe mocha",
13+
"test": "npm run lint && xvfb-maybe --server-args=\"-screen 0 1024x768x24\" -- mocha",
1414
"postinstall": "node lib/rpath-fix.js"
1515
},
1616
"engines": {

test/commands-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ describe('window commands', function () {
181181
app.electron.clipboard.writeText('pasta');
182182
await app.electron.clipboard.readText().should.eventually.equal('pasta');
183183
await elem.click();
184-
app.webContents.paste();
184+
await app.webContents.paste();
185185
const value = await elem.getValue();
186186
return expect(value).to.equal('pasta');
187187
});

0 commit comments

Comments
 (0)