Skip to content

Commit

Permalink
build: move to GitHub actions (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Apr 30, 2020
1 parent e9602bf commit 56b7723
Show file tree
Hide file tree
Showing 10 changed files with 894 additions and 965 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
@@ -0,0 +1,38 @@
on:
push:
branches:
- master
pull_request:
name: ci
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12, 14]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: node --version
- run: npm install
- run: npm test
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- run: npm test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- run: npm run coverage
File renamed without changes.
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
@@ -1,7 +1,7 @@
# c8 - native V8 code-coverage

[![Build Status](https://travis-ci.org/bcoe/c8.svg?branch=master)](https://travis-ci.org/bcoe/c8)
[![Coverage Status](https://coveralls.io/repos/github/bcoe/c8/badge.svg?branch=master)](https://coveralls.io/github/bcoe/c8?branch=master)
![ci](https://github.com/bcoe/c8/workflows/ci/badge.svg)
![nycrc config on GitHub](https://img.shields.io/nycrc/bcoe/c8)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)

Code-coverage using [Node.js' built in functionality](https://nodejs.org/dist/latest-v10.x/docs/api/cli.html#cli_node_v8_coverage_dir)
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/report.js
Expand Up @@ -23,5 +23,5 @@ exports.outputReport = async function (argv) {
all: argv.all
})
await report.run()
if (argv.checkCoverage) checkCoverages(argv, report)
if (argv.checkCoverage) await checkCoverages(argv, report)
}

0 comments on commit 56b7723

Please sign in to comment.