8000 Use GitHub actions for CI instead of Travis · stacktracejs/stacktrace-gps@3e08739 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e08739

Browse files
committed
Use GitHub actions for CI instead of Travis
1 parent 0933c7d commit 3e08739

File tree

3 files changed

+52
-17
lines changed

3 files changed

+52
-17
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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
39+
- name: Install lcov
40+
run: |
41+
sudo apt update
42+
sudo apt install lcov
43+
- name: Merge lcov reports
44+
run: find coverage -name lcov.info -exec echo -a \"{}\" \; | xargs lcov -o coverage/lcov.info
45+
- name: Coveralls
46+
uses: coverallsapp/github-action@master
47+
with:
48+
github-token: ${{ secrets.github_token }}

.travis.yml

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

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
stacktrace-gps - Turn partial code location into precise code location
22
===================
3-
[![Build Status](https://travis-ci.org/stacktracejs/stacktrace-gps.svg?branch=master)](https://travis-ci.org/stacktracejs/stacktrace-gps) [![Coverage Status](https://img.shields.io/coveralls/stacktracejs/stacktrace-gps.svg)](https://coveralls.io/r/stacktracejs/stacktrace-gps) [![GitHub license](https://img.shields.io/github/license/stacktracejs/stacktrace-gps.svg)](https://opensource.org/licenses/MIT)
3+
[![Build Status](https://img.shields.io/github/workflow/status/stacktracejs/stacktrace-gps/Continuous%20Integration/master?logo=github&style=flat-square)](https://github.com/stacktracejs/stacktrace-gps/actions?query=workflow%3AContinuous+Integration+branch%3Amaster)
4+
[![Coverage Status](https://img.shields.io/coveralls/stacktracejs/stacktrace-gps.svg?style=flat-square)](https://coveralls.io/r/stacktracejs/stacktrace-gps?branch=master)
5+
[![GitHub license](https://img.shields.io/github/license/stacktracejs/stacktrace-gps.svg?style=flat-square)](https://opensource.org/licenses/MIT)
46

57
This library accepts a code location (in the form of a [StackFrame](https://github.com/stacktracejs/stackframe)) and
68
returns a new StackFrame with a more accurate location (using [source maps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/)) and guessed function names.
@@ -86,4 +88,4 @@ Functions that rely on [Source Maps](http://www.html5rocks.com/en/tutorials/deve
8688
(`pinpoint` and `getMappedLocation`) require recent browsers.
8789

8890
## Contributing
89-
Want to be listed as a *Contributor*? Start with the [Contributing Guide](CONTRIBUTING.md)!
91+
Want to be listed as a *Contributor*? Start with the [Contributing Guide](.github/CONTRIBUTING.md)!

0 commit comments

Comments
 (0)
0