Skip to content

Commit ecb8d0e

Browse files
committed
build: move CI to GitHub Actions
Reduce CI time by moving to GitHub Actions. Fixes: #312 PR-URL: #323 Reviewed-By: Richard Lau <riclau@uk.ibm.com>
1 parent 6f27d84 commit ecb8d0e

File tree

4 files changed

+77
-174
lines changed

4 files changed

+77
-174
lines changed

.github/workflows/push.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: on push or pull_request
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
jobs:
12+
tests:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
node:
19+
- version: 8.x
20+
- version: 10.x
21+
- version: 11.x
22+
- version: 14.x
23+
mirror: https://nodejs.org/download/nightly
24+
- version: 14.x
25+
mirror: https://nodejs.org/download/v8-canary
26+
os: [ubuntu-latest, macos-latest]
27+
steps:
28+
- uses: actions/checkout@v1
29+
- name: Use Node.js ${{ matrix.node.version }} ${{ matrix.node.mirror }}
30+
uses: mmarchini/setup-node@mirror
31+
with:
32+
node-version: ${{ matrix.node.version }}
33+
node-mirror: ${{ matrix.node.mirror }}
34+
- name: install dependencies Linux
35+
if: matrix.os == 'ubuntu-latest'
36+
run: |
37+
sudo apt-get -qq update
38+
sudo apt-get install lldb-3.9 liblldb-3.9-dev lcov gdb -y
39+
- name: npm install
40+
run: |
41+
npm install --llnode_build_addon=true --llnode_coverage=true
42+
- name: run tests
43+
run: TEST_LLDB_BINARY=`which lldb-3.9` npm run nyc-test-all
44+
if: matrix.node.version != '14.x'
45+
- name: run tests (nightly)
46+
run: TEST_LLDB_BINARY=`which lldb-3.9` npm run nyc-test-all
47+
if: matrix.node.version == '14.x'
48+
continue-on-error: true
49+
- name: prepare coverage
50+
if: matrix.os == 'ubuntu-latest' && matrix.node.version != '14.x'
51+
run: |
52+
npm run coverage
53+
cat ./coverage-js.info > ./coverage.info
54+
cat ./coverage-cc.info >> ./coverage.info
55+
- name: coveralls
56+
if: matrix.os == 'ubuntu-latest' && matrix.node.version != '14.x'
57+
uses: coverallsapp/github-action@master
58+
with:
59+
path-to-lcov: ./coverage.info
60+
github-token: ${{ secrets.GITHUB_TOKEN }}
61+
linter:
62+
runs-on: [ubuntu-latest]
63+
steps:
64+
- uses: actions/checkout@v1
65+
- name: Use Node.js LTS
66+
uses: actions/setup-node@v1
67+
with:
68+
node-version: 12.x
69+
- name: npm install, build, and test
70+
run: |
71+
sudo apt-get -qq update
72+
sudo apt-get install lldb-3.9 liblldb-3.9-dev lcov -y
73+
npm install
74+
npm run linter

.travis.yml

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

README.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
</p>
1010

1111
[![npm](https://img.shields.io/npm/v/llnode.svg?style=flat-square)](https://npmjs.org/package/llnode)
12+
![ci](https://img.shields.io/github/workflow/status/nodejs/llnode/push/master?style=flat-square)
13+
[![coverage](https://img.shields.io/coveralls/github/nodejs/llnode/master?style=flat-square)](https://coveralls.io/github/nodejs/llnode)
1214

1315

1416
Node.js v4.x+ C++ plugin for the [LLDB](http://lldb.llvm.org) debugger.
@@ -21,17 +23,6 @@ with Node.js processes or core dumps in LLDB.
2123

2224
https://asciinema.org/a/29589
2325

24-
## Build Status
25-
26-
| Version | v8.x | v10.x | v11.x | master | v8-canary |
27-
|---------|-------------------------|---------------------------|---------------------------|-------------------------------|----------------------------------|
28-
| **Trusty** | [![v8.x badge][v8-trusty-badge]][travis] | [![v10.x badge][v10-trusty-badge]][travis] | [![v11.x badge][v11-trusty-badge]][travis] | [![master badge][master-trusty-badge]][travis] | [![v8-canary badge][canary-trusty-badge]][travis] |
29-
| **OS X** | [![v8.x badge][v8-osx-badge]][travis] | [![v10.x badge][v10-osx-badge]][travis] | [![v11.x badge][v11-osx-badge]][travis] | - | - |
30-
31-
We have nightly test runs against all Node.js active release lines. We also test
32-
against Node.js master and Node.js v8-canary nightly builds to help us identify
33-
breaking changes on Node.js and V8 before they land on an active release line.
34-
3526
## Quick start
3627

3728
Start an LLDB session with the llnode plugin automatically loaded:
@@ -386,15 +377,3 @@ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
386377
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
387378
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
388379
USE OR OTHER DEALINGS IN THE SOFTWARE.
389-
390-
[travis]: https://travis-ci.com/nodejs/llnode
391-
[v8-trusty-badge]: https://travisci-matrix-badges.herokuapp.com/repos/nodejs/llnode/branches/master/1?use_travis_com=true
392-
[v10-trusty-badge]: https://travisci-matrix-badges.herokuapp.com/repos/nodejs/llnode/branches/master/2?use_travis_com=true
393-
[v11-trusty-badge]: https://travisci-matrix-badges.herokuapp.com/repos/nodejs/llnode/branches/master/3?use_travis_com=true
394-
395-
[v8-osx-badge]: https://travisci-matrix-badges.herokuapp.com/repos/nodejs/llnode/branches/master/4?use_travis_com=true
396-
[v10-osx-badge]: https://travisci-matrix-badges.herokuapp.com/repos/nodejs/llnode/branches/master/5?use_travis_com=true
397-
[v11-osx-badge]: https://travisci-matrix-badges.herokuapp.com/repos/nodejs/llnode/branches/master/6?use_travis_com=true
398-
399-
[master-trusty-badge]: https://travisci-matrix-badges.herokuapp.com/repos/nodejs/llnode/branches/master/8?use_travis_com=true
400-
[canary-trusty-badge]: https://travisci-matrix-badges.herokuapp.com/repos/nodejs/llnode/branches/master/9?use_travis_com=true

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@
2020
"nyc-test-all": "nyc npm run test-all",
2121
"nyc-test": "nyc npm run test",
2222
"coverage-cc": "make coverage",
23-
"coverage-js": "nyc report --reporter=text-lcov > coverage-js.lcov",
23+
"coverage-js": "nyc report --reporter=text-lcov > coverage-js.info",
2424
"coverage": "npm run coverage-cc && npm run coverage-js",
25-
"codecov-upload-cc": "codecov --disable=gcov --file=coverage-cc.info",
26-
"codecov-upload-js": "codecov --disable=gcov --file=coverage-js.lcov",
27-
"codecov-upload": "npm run codecov-upload-cc && npm run codecov-upload-js",
2825
"linter": "node scripts/linter.js",
2926
"format": "npx clang-format -i src/*"
3027
},

0 commit comments

Comments
 (0)