Skip to content

Commit 42dea85

Browse files
committed
chore(readify) lint
1 parent c4e6606 commit 42dea85

File tree

6 files changed

+62
-6
lines changed

6 files changed

+62
-6
lines changed

.github/main.workflow

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
workflow "Push" {
2+
resolves = ["lint", "coverage"]
3+
on = "push"
4+
}
5+
6+
action "lint" {
7+
uses = "gimenete/[email protected]"
8+
}
9+
10+
action "coverage" {
11+
uses = "coverallsapp/[email protected]"
12+
}

.github/workflows/nodejs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Node CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [14.x, 15.x]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
21+
- name: Install Redrun
22+
run:
23+
npm i redrun -g
24+
25+
- name: Install
26+
run:
27+
npm install
28+
29+
- name: Bootstrap
30+
run:
31+
redrun bootstrap
32+
33+
- name: Lint
34+
run:
35+
redrun lint
36+
37+
- name: Coverage
38+
run:
39+
redrun coverage report
40+
41+
- name: Coveralls
42+
uses: coverallsapp/github-action@master
43+
with:
44+
github-token: ${{ secrets.GITHUB_TOKEN }}
45+

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ yarn-error.log
66

77
.nyc_output
88
*.swp
9-
.putoutcache
109

.madrun.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export default {
55
'fresh:lint': () => run('lint', '--fresh'),
66
'lint:fresh': () => run('lint', '--fresh'),
77
'fix:lint': () => run('lint', '--fix'),
8-
'report': () => 'nyc report --reporter=text-lcov | coveralls',
9-
'coverage': () => 'nyc npm test',
8+
'report': () => 'c8 report --reporter=lcov',
9+
'coverage': () => 'c8 npm test',
1010
'test': () => 'tape test/*.js',
1111
'watch:coverage': () => run('watcher', 'npm run coverage'),
1212
'watch:test': () => run('watcher', 'npm test'),

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Readify [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
22

33
[NPMIMGURL]: https://img.shields.io/npm/v/readify.svg?style=flat
4-
[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/readify/master.svg?style=flat
4+
[BuildStatusURL]: https://github.com/coderaiser/readify/actions?query=workflow%3A%22Node+CI%22 "Build Status"
5+
[BuildStatusIMGURL]: https://github.com/coderaiser/readify/workflows/Node%20CI/badge.svg
56
[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/readify.svg?style=flat
67
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
78
[NPMURL]: https://npmjs.org/package/readify "npm"
8-
[BuildStatusURL]: https://travis-ci.org/coderaiser/readify "Build Status"
99
[DependencyStatusURL]: https://david-dm.org/coderaiser/readify "Dependency Status"
1010
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
1111

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
},
4848
"devDependencies": {
4949
"@cloudcmd/stub": "^3.0.0",
50+
"c8": "^7.6.0",
5051
"coveralls": "^3.0.0",
5152
"eslint": "^7.0.0",
5253
"eslint-plugin-node": "^11.0.0",
5354
"eslint-plugin-putout": "^7.2.1",
5455
"madrun": "^8.0.0",
5556
"mock-require": "^3.0.2",
5657
"nodemon": "^2.0.1",
57-
"nyc": "^15.0.0",
5858
"putout": "^15.4.3",
5959
"supertape": "^5.0.0",
6060
"try-catch": "^3.0.0"

0 commit comments

Comments
 (0)