Skip to content

Commit

Permalink
build: switch to actions for ci/cd and release-please (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Aug 2, 2020
1 parent 9a618bc commit a481c82
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 7 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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 test
- run: npm run coverage
14 changes: 14 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
push:
branches:
- master
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: bcoe/release-please-action@v1.6.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: v8-to-istanbul
12 changes: 12 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"exclude": [
"test/**"
],
"reporter": [
"html",
"text"
],
"lines": 99.5,
"branches": "94",
"statements": "99.5"
}
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

converts from v8 coverage format to [istanbul's coverage format](https://github.com/gotwarlost/istanbul/blob/master/coverage.json.md).

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"snapshot": "TAP_SNAPSHOT=1 tap test/*.js",
"test": "c8 --reporter=html --reporter=text tap --no-coverage --no-esm test/*.js",
"posttest": "standard",
"coverage": "c8 report --reporter=text-lcov | coveralls"
"coverage": "c8 report --check-coverage"
},
"repository": "istanbuljs/v8-to-istanbul",
"keywords": [
Expand All @@ -32,7 +32,6 @@
"devDependencies": {
"@types/node": "^12.7.11",
"c8": "^7.0.0",
"coveralls": "3.1.0",
"should": "13.2.3",
"standard": "^14.3.1",
"tap": "^14.9.2"
Expand Down

0 comments on commit a481c82

Please sign in to comment.