Skip to content

Commit a7f48d0

Browse files
committed
Switch to GitHub Actions
1 parent b4c6d5b commit a7f48d0

File tree

4 files changed

+49
-17
lines changed

4 files changed

+49
-17
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Tests
2+
'on':
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-18.04
9+
name: Node ${{ matrix.node }}
10+
strategy:
11+
matrix:
12+
node:
13+
- '10'
14+
- '12'
15+
- '14'
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Setup node
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node }}
22+
- run: npm install
23+
- run: npm test
24+
25+
test-targets:
26+
runs-on: ubuntu-18.04
27+
name: ${{ matrix.targets.name }}
28+
strategy:
29+
matrix:
30+
targets:
31+
- name: 'Lint'
32+
target: 'lint'
33+
- name: 'Coverage'
34+
target: 'coverage'
35+
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Setup node
39+
uses: actions/setup-node@v1
40+
with:
41+
node-version: '14'
42+
- run: npm install
43+
- run: npm run ${{ matrix.targets.target }}
44+
- name: Upload coverage
45+
uses: coverallsapp/github-action@master
46+
with:
47+
github-token: ${{ secrets.GITHUB_TOKEN }}
48+
if: ${{ matrix.targets.target == 'coverage' }}

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin for [Unexpected](https://github.com/unexpectedjs/unexpected) that makes it easy to test [Express.js](https://github.com/visionmedia/express/) middleware. Uses the [unexpected-messy](https://github.com/unexpectedjs/unexpected-messy) plugin to do most of the heavy lifting.
44

55
[![NPM version](https://badge.fury.io/js/unexpected-express.svg)](http://badge.fury.io/js/unexpected-express)
6-
[![Build Status](https://travis-ci.org/unexpectedjs/unexpected-express.svg?branch=master)](https://travis-ci.org/unexpectedjs/unexpected-express)
6+
[![Build Status](https://github.com/unexpectedjs/unexpected-express/workflows/Tests/badge.svg)](https://github.com/unexpectedjs/unexpected-express)
77
[![Coverage Status](https://coveralls.io/repos/unexpectedjs/unexpected-express/badge.svg)](https://coveralls.io/r/unexpectedjs/unexpected-express)
88
[![Dependency Status](https://david-dm.org/unexpectedjs/unexpected-express.svg)](https://david-dm.org/unexpectedjs/unexpected-express)
99

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
},
3838
"devDependencies": {
3939
"body-parser": "^1.0.2",
40-
"coveralls": "^3.0.0",
4140
"eslint": "^7.0.0",
4241
"eslint-config-prettier": "^6.0.0",
4342
"eslint-config-standard": "^16.0.1",

0 commit comments

Comments
 (0)