Skip to content

Commit

Permalink
⚒ use GitHub Actions (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea authored Aug 30, 2019
1 parent df4a300 commit cc8c040
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 13 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: off
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: 0 0 * * 0

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node: [12.x, 10.x, 8.x]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Packages
run: npm install
- name: Test
run: npm test
- name: Send Coverage
run: npm run -s codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

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

The regular expression parser for ECMAScript.
A regular expression parser for ECMAScript.

## 💿 Installation

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@types/jsdom": "^12.2.4",
"@types/mocha": "^5.2.2",
"@types/node": "^12.6.8",
"coveralls": "^3.0.1",
"codecov": "^3.5.0",
"dts-bundle": "^0.7.3",
"eslint": "^6.1.0",
"jsdom": "^15.1.1",
Expand All @@ -37,7 +37,7 @@
"build:rollup": "rollup -c",
"build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
"clean": "rimraf .temp index.*",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"codecov": "nyc report -r lcovonly && codecov -t ${CODECOV_TOKEN} --disable=gcov",
"lint": "eslint scripts src test --ext .ts",
"pretest": "run-s build lint",
"test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",
Expand Down

0 comments on commit cc8c040

Please sign in to comment.