Skip to content

Commit

Permalink
test(ci): use github actions Linux container (#782)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
AviVahl authored Nov 30, 2020
1 parent 1510a9b commit d515796
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macOS-latest]
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [12.x]

steps:
Expand Down
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

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

[![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/)
[![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/)
[![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)

Easily test your [Electron](http://electron.atom.io) apps using
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prepare": "check-for-leaks",
"prepush": "check-for-leaks",
"pretest": "tsc lib/spectron.d.ts",
"test": "npm run lint && xvfb-maybe mocha",
"test": "npm run lint && xvfb-maybe --server-args=\"-screen 0 1024x768x24\" -- mocha",
"postinstall": "node lib/rpath-fix.js"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion test/commands-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ describe('window commands', function () {
app.electron.clipboard.writeText('pasta');
await app.electron.clipboard.readText().should.eventually.equal('pasta');
await elem.click();
app.webContents.paste();
await app.webContents.paste();
const value = await elem.getValue();
return expect(value).to.equal('pasta');
});
Expand Down

0 comments on commit d515796

Please sign in to comment.