Skip to content

Commit 277ceff

Browse files
committed
⚒ switch CI to GitHub Actions
1 parent 34b4539 commit 277ceff

File tree

4 files changed

+35
-10
lines changed

4 files changed

+35
-10
lines changed

.github/workflows/CI.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
with:
21+
fetch-depth: 1
22+
- name: Install Node.js ${{ matrix.node }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node }}
26+
- name: Install Packages
27+
run: npm install
28+
- name: Test
29+
run: npm test
30+
- name: Send Coverage
31+
run: npm run -s codecov
32+
env:
33+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"scripts": {
4040
"clean": "rimraf .nyc_output coverage",
4141
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",
42-
"codecov": "nyc report --reporter lcov && codecov",
42+
"codecov": "nyc report --reporter text-lcov | codecov --pipe --disable=gcov -t $CODECOV_TOKEN",
4343
"lint": "eslint lib scripts tests",
4444
"test": "npm run -s lint && nyc mocha \"tests/lib/**/*.js\" --reporter dot",
4545
"update": "node scripts/generate-browser-globals && node scripts/generate-configs && node scripts/generate-rules",

0 commit comments

Comments
 (0)