Skip to content

Commit 21e01d6

Browse files
committed
Ditch Travis CI and switch to GitHub actions
1 parent 9657fc3 commit 21e01d6

File tree

3 files changed

+46
-28
lines changed

3 files changed

+46
-28
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
workflow_dispatch:
10+
jobs:
11+
Tests:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Dump Chrome version
16+
run: |
17+
"$CHROME_BIN" --version
18+
- name: Dump Node.js version
19+
run: |
20+
node --version
21+
- name: Dump NPM version
22+
run: |
23+
npm --version
24+
- name: Install dependencies
25+
run: |
26+
npm install
27+
- name: Start headless Chrome
28+
run: |
29+
$CHROME_BIN \
30+
--disable-extensions \
31+
--disable-gpu \
32+
--headless \
33+
--no-first-run \
34+
--no-sandbox \
35+
--remote-debugging-port=9222 \
36+
--user-data-dir="$(mktemp -d)" \
37+
about:blank &
38+
- name: Wait for Chrome to start listening
39+
run: |
40+
while ! curl --silent --fail http://localhost:9222; do sleep 1; done
41+
- name: Run tests
42+
run: |
43+
npm test

.travis.yml

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

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# chrome-remote-interface [![Build Status][]][travis]
1+
# chrome-remote-interface
2+
3+
[![CI status](https://github.com/cyrus-and/chrome-remote-interface/actions/workflows/ci.yml/badge.svg)](https://github.com/cyrus-and/chrome-remote-interface/actions?query=workflow:CI)
24

35
[Build Status]: https://app.travis-ci.com/cyrus-and/chrome-remote-interface.svg?branch=master
46
[travis]: https://app.travis-ci.com/cyrus-and/chrome-remote-interface

0 commit comments

Comments
 (0)