Skip to content

Commit af784ea

Browse files
committed
chore(madrun) ci: travis -> actions
1 parent 9129f1a commit af784ea

File tree

2 files changed

+57
-5
lines changed

2 files changed

+57
-5
lines changed

.github/workflows/nodejs.yml

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

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ $ madrun fix:lint
159159

160160
MIT
161161

162-
[NPMIMGURL]: https://img.shields.io/npm/v/madrun.svg?style=flat
163-
[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/madrun/master.svg?style=flat
164-
[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/madrun.svg?style=flat
165-
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
166162
[NPMURL]: https://npmjs.org/package/madrun "npm"
167-
[BuildStatusURL]: https://travis-ci.org/coderaiser/madrun "Build Status"
163+
[NPMIMGURL]: https://img.shields.io/npm/v/madrun.svg?style=flat
164+
[BuildStatusURL]: https://github.com/coderaiser/madrun/actions?query=workflow%3A%22Node+CI%22 "Build Status"
165+
[BuildStatusIMGURL]: https://github.com/coderaiser/madrun/workflows/Node%20CI/badge.svg
168166
[DependencyStatusURL]: https://david-dm.org/coderaiser/madrun "Dependency Status"
167+
[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/madrun.svg?style=flat
169168
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
169+
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
170170
[CoverageURL]: https://coveralls.io/github/coderaiser/madrun?branch=master
171171
[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/madrun/badge.svg?branch=master&service=github

0 commit comments

Comments
 (0)