Skip to content

Commit

Permalink
tests(ci): migrate from travis to github actions (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jan 20, 2021
1 parent 3a90c21 commit df9d564
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 🛠

on:
push:
branches: [master]
pull_request: # run on all PRs, not just PRs to a particular branch

jobs:
basics:
runs-on: ubuntu-latest
strategy:
matrix:
# awaiting support for 'latest'/'lts'. https://github.com/actions/setup-node/issues/26
node: [ '10', '12', '14' ]
name: basics (node ${{ matrix.node }})

steps:
- name: git clone
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- run: yarn --frozen-lockfile
- run: yarn build

- run: yarn test-formatting
- run: yarn type-check

# Run tests that require headful Chrome.
- run: sudo apt-get install xvfb
- name: yarn test
run: xvfb-run --auto-servernum yarn test --reporter=spec
2 changes: 1 addition & 1 deletion test/chrome-launcher-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('Launcher', () => {
await chromeInstance.launch();
await chromeInstance.kill();
await chromeInstance.kill();
});
}).timeout(30 * 1000);

it('doesn\'t fail when killing all instances', async () => {
await launch();
Expand Down

0 comments on commit df9d564

Please sign in to comment.