Skip to content

Commit

Permalink
Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjeffburke committed Nov 22, 2020
1 parent b4c6d5b commit a7f48d0
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 17 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,48 @@
name: Tests
'on':
push:
pull_request:

jobs:
test:
runs-on: ubuntu-18.04
name: Node ${{ matrix.node }}
strategy:
matrix:
node:
- '10'
- '12'
- '14'
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test

test-targets:
runs-on: ubuntu-18.04
name: ${{ matrix.targets.name }}
strategy:
matrix:
targets:
- name: 'Lint'
target: 'lint'
- name: 'Coverage'
target: 'coverage'

steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm install
- run: npm run ${{ matrix.targets.target }}
- name: Upload coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ matrix.targets.target == 'coverage' }}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -3,7 +3,7 @@
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.

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

Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -37,7 +37,6 @@
},
"devDependencies": {
"body-parser": "^1.0.2",
"coveralls": "^3.0.0",
"eslint": "^7.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-standard": "^16.0.1",
Expand Down

0 comments on commit a7f48d0

Please sign in to comment.