Skip to content

Commit

Permalink
Merge f9cccb4 into 1de86e6
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Mar 8, 2021
2 parents 1de86e6 + f9cccb4 commit af10100
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 28 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,52 @@
name: CI

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 10
- 12
- 14
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
- run:
echo ::set-output name=job_id::$(node -e
"console.log(crypto.randomBytes(16).toString('hex'))")
id: get_job_id
- uses: coverallsapp/github-action@v1.1.2
with:
flag-name:
${{ steps.get_job_id.outputs.job_id }} (Node.js ${{ matrix.node }})
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
test-browser:
runs-on: ubuntu-latest
env:
SAUCE_USERNAME: eventemitter3
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm install
- run: npm run test-browser
coverage:
needs: test
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# EventEmitter3

[![Version npm](https://img.shields.io/npm/v/eventemitter3.svg?style=flat-square)](https://www.npmjs.com/package/eventemitter3)[![Build Status](https://img.shields.io/travis/primus/eventemitter3/master.svg?style=flat-square)](https://travis-ci.org/primus/eventemitter3)[![Dependencies](https://img.shields.io/david/primus/eventemitter3.svg?style=flat-square)](https://david-dm.org/primus/eventemitter3)[![Coverage Status](https://img.shields.io/coveralls/primus/eventemitter3/master.svg?style=flat-square)](https://coveralls.io/r/primus/eventemitter3?branch=master)[![IRC channel](https://img.shields.io/badge/IRC-irc.freenode.net%23primus-00a8ff.svg?style=flat-square)](https://webchat.freenode.net/?channels=primus)
[![Version npm](https://img.shields.io/npm/v/eventemitter3.svg?style=flat-square)](https://www.npmjs.com/package/eventemitter3)[![Build Status](https://img.shields.io/github/workflow/status/primus/eventemitter3/CI/master?label=CI&style=flat-square)](https://github.com/primus/eventemitter3/actions?query=workflow%3ACI+branch%3Amaster)[![Dependencies](https://img.shields.io/david/primus/eventemitter3.svg?style=flat-square)](https://david-dm.org/primus/eventemitter3)[![Coverage Status](https://img.shields.io/coveralls/primus/eventemitter3/master.svg?style=flat-square)](https://coveralls.io/r/primus/eventemitter3?branch=master)[![IRC channel](https://img.shields.io/badge/IRC-irc.freenode.net%23primus-00a8ff.svg?style=flat-square)](https://webchat.freenode.net/?channels=primus)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/eventemitter3.svg)](https://saucelabs.com/u/eventemitter3)

Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -8,7 +8,7 @@
"browserify": "rm -rf umd && mkdir umd && browserify index.js -s EventEmitter3 -o umd/eventemitter3.js",
"minify": "uglifyjs umd/eventemitter3.js --source-map -cm -o umd/eventemitter3.min.js",
"benchmark": "find benchmarks/run -name '*.js' -exec benchmarks/start.sh {} \\;",
"test": "c8 --reporter=html --reporter=text mocha test/test.js",
"test": "c8 --reporter=lcov --reporter=text mocha test/test.js",
"prepublishOnly": "npm run browserify && npm run minify",
"test-browser": "node test/browser.js"
},
Expand Down Expand Up @@ -47,7 +47,6 @@
"assume": "^2.2.0",
"browserify": "^7.1.0",
"c8": "^7.3.1",
"coveralls": "^3.1.0",
"mocha": "^8.0.1",
"pre-commit": "^1.2.0",
"sauce-browsers": "^2.0.0",
Expand Down

0 comments on commit af10100

Please sign in to comment.