Skip to content

Commit

Permalink
Ditch Travis CI and switch to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and committed Apr 13, 2023
1 parent 9657fc3 commit 21e01d6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 28 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Dump Chrome version
run: |
"$CHROME_BIN" --version
- name: Dump Node.js version
run: |
node --version
- name: Dump NPM version
run: |
npm --version
- name: Install dependencies
run: |
npm install
- name: Start headless Chrome
run: |
$CHROME_BIN \
--disable-extensions \
--disable-gpu \
--headless \
--no-first-run \
--no-sandbox \
--remote-debugging-port=9222 \
--user-data-dir="$(mktemp -d)" \
about:blank &
- name: Wait for Chrome to start listening
run: |
while ! curl --silent --fail http://localhost:9222; do sleep 1; done
- name: Run tests
run: |
npm test
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# chrome-remote-interface [![Build Status][]][travis]
# chrome-remote-interface

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

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

0 comments on commit 21e01d6

Please sign in to comment.