Skip to content

Commit bc10f3e

Browse files
committed
Replace TravisCI with GitHub actions
1 parent 57f4c57 commit bc10f3e

File tree

5 files changed

+48
-23
lines changed

5 files changed

+48
-23
lines changed

.github/CONTRIBUTING.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ Want to be listed as a *Contributor*? Make a pull request with:
1818
* Please keep code style consistent with surrounding code.
1919

2020
## Dev Setup
21-
* Make sure you have [NodeJS v0.10](http://nodejs.org/) installed
22-
* Run `npm install` from the project directory
21+
* Make sure you have [NodeJS v16.x](https://nodejs.org/) installed
22+
* Run `npm ci` from the project directory
23+
24+
## Linting
25+
* Run `npm run lint` to run ESLint
2326

2427
## Testing
25-
* (Local) Run `npm test`. Make sure [Karma Local Config](karma.conf.js) has the browsers you want.
26-
* (Any browser, remotely) If you have a [Sauce Labs](https://saucelabs.com) account, you can run `gulp test-ci`.
27-
Make sure the target browser is enabled in [Karma CI Config](karma.conf.ci.js).
28-
Otherwise, Travis will run all browsers if you submit a Pull Request.
28+
* (Local) Run `npm test`. Make sure [Karma Local Config](karma.conf.js) has the browsers you want
29+
* (Any browser, remotely) If you have a [Sauce Labs](https://saucelabs.com) account, you can run `npm run test-ci`
30+
Make sure the target browser is enabled in [Karma CI Config](karma.conf.ci.js)
31+
Otherwise, GitHub Actions will run all browsers if you submit a Pull Request.

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Continuous Integration
2+
on: [push]
3+
4+
jobs:
5+
tests:
6+
runs-on: ubuntu-latest
7+
environment: sauce
8+
permissions: read-all
9+
env:
10+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
11+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
12+
SAUCE_TUNNEL_ID: github-action-tunnel
13+
steps:
14+
- name: Setup sauce connect
15+
uses: saucelabs/sauce-connect-action@v2
16+
with:
17+
username: ${{ secrets.SAUCE_USERNAME }}
18+
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
19+
tunnelIdentifier: github-action-tunnel
20+
scVersion: 4.7.1
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: 16
26+
- name: Cache dependencies
27+
uses: actions/cache@v2
28+
with:
29+
path: ~/.npm
30+
key: npm-${{ hashFiles('package-lock.json') }}
31+
restore-keys: npm-
32+
- name: Install packages
33+
run: npm ci
34+
- name: Lint code
35+
run: npm run lint
36+
- name: Run browser tests in Saucelabs
37+
run: npm run test-ci
38+
timeout-minutes: 5

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ spec/
66
.coveralls.yml
77
.editorconfig
88
.idea
9-
.travis.yml

.travis.yml

Lines changed: 0 additions & 15 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
error-stack-parser.js - Extract meaning from JS Errors
22
===============
3-
[![Build Status](https://img.shields.io/travis/stacktracejs/error-stack-parser/master.svg?style=flat-square)](https://travis-ci.org/stacktracejs/error-stack-parser)
3+
[![Build Status](https://img.shields.io/github/workflow/status/stacktracejs/error-stack-parser/Continuous%20Integration/master?logo=github&style=flat-square)](https://github.com/stacktracejs/error-stack-parser/actions?query=workflow%3AContinuous+Integration+branch%3Amaster)
44
[![Coverage Status](https://img.shields.io/coveralls/stacktracejs/error-stack-parser.svg?style=flat-square)](https://coveralls.io/r/stacktracejs/error-stack-parser?branch=master)
55
[![GitHub license](https://img.shields.io/github/license/stacktracejs/error-stack-parser.svg?style=flat-square)](https://opensource.org/licenses/MIT)
66
[![size with dependencies](https://img.shields.io/badge/size-4.8k-green.svg?style=flat-square)](https://github.com/stacktracejs/error-stack-parser/releases)

0 commit comments

Comments
 (0)