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 bcdd88d commit 1e55d32
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 30 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,50 @@
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'
- name: 'Documentation'
target: 'test-docs'

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' }}
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -3,7 +3,7 @@
Add support to [Unexpected](http://unexpected.js.org) for testing [Set](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Set) instances.

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

Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -30,7 +30,6 @@
},
"homepage": "https://unexpected.js.org/unexpected-set",
"devDependencies": {
"coveralls": "^3.0.0",
"eslint": "^7.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-standard": "^16.0.0",
Expand Down

0 comments on commit 1e55d32

Please sign in to comment.