Skip to content

Commit cc8c040

Browse files
authored
⚒ use GitHub Actions (#7)
1 parent df4a300 commit cc8c040

File tree

5 files changed

+37
-13
lines changed

5 files changed

+37
-13
lines changed

.codecov.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: off

.github/workflows/ci.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
schedule:
8+
- cron: 0 0 * * 0
9+
10+
jobs:
11+
test:
12+
name: Test
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node: [12.x, 10.x, 8.x]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v1
20+
- name: Install Node.js ${{ matrix.node }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node }}
24+
- name: Install Packages
25+
run: npm install
26+
- name: Test
27+
run: npm test
28+
- name: Send Coverage
29+
run: npm run -s codecov
30+
env:
31+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.travis.yml

-8
This file was deleted.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
[![npm version](https://img.shields.io/npm/v/regexpp.svg)](https://www.npmjs.com/package/regexpp)
44
[![Downloads/month](https://img.shields.io/npm/dm/regexpp.svg)](http://www.npmtrends.com/regexpp)
5-
[![Build Status](https://travis-ci.org/mysticatea/regexpp.svg?branch=master)](https://travis-ci.org/mysticatea/regexpp)
6-
[![Coverage Status](https://coveralls.io/repos/github/mysticatea/regexpp/badge.svg)](https://coveralls.io/github/mysticatea/regexpp)
5+
[![Build Status](https://github.com/mysticatea/regexpp/workflows/CI/badge.svg)](https://github.com/mysticatea/regexpp/actions)
6+
[![codecov](https://codecov.io/gh/mysticatea/regexpp/branch/master/graph/badge.svg)](https://codecov.io/gh/mysticatea/regexpp)
77
[![Dependency Status](https://david-dm.org/mysticatea/regexpp.svg)](https://david-dm.org/mysticatea/regexpp)
88

9-
The regular expression parser for ECMAScript.
9+
A regular expression parser for ECMAScript.
1010

1111
## 💿 Installation
1212

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@types/jsdom": "^12.2.4",
1717
"@types/mocha": "^5.2.2",
1818
"@types/node": "^12.6.8",
19-
"coveralls": "^3.0.1",
19+
"codecov": "^3.5.0",
2020
"dts-bundle": "^0.7.3",
2121
"eslint": "^6.1.0",
2222
"jsdom": "^15.1.1",
@@ -37,7 +37,7 @@
3737
"build:rollup": "rollup -c",
3838
"build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
3939
"clean": "rimraf .temp index.*",
40-
"coveralls": "nyc report --reporter=text-lcov | coveralls",
40+
"codecov": "nyc report -r lcovonly && codecov -t ${CODECOV_TOKEN} --disable=gcov",
4141
"lint": "eslint scripts src test --ext .ts",
4242
"pretest": "run-s build lint",
4343
"test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",

0 commit comments

Comments
 (0)