Skip to content

Commit 8cd6b41

Browse files
committed
Replace Travis CI with Github Actions
1 parent f86326f commit 8cd6b41

File tree

3 files changed

+40
-22
lines changed

3 files changed

+40
-22
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Node.js ${{ matrix.node-version }}
8+
runs-on: macos-latest
9+
strategy:
10+
matrix:
11+
node-version:
12+
- "10"
13+
- "12"
14+
- "14"
15+
- "*"
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- uses: actions/cache@v2
22+
with:
23+
path: ~/.npm
24+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25+
restore-keys: |
26+
${{ runner.os }}-node-
27+
- run: npm install -g npm@7
28+
- run: npm ci
29+
- run: npm test
30+
- uses: codecov/codecov-action@v1
31+
with:
32+
name: Node.js ${{ matrix.node-version }}

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
[![NPM version][npm-image]][npm-url]
44
[![NPM downloads][downloads-image]][downloads-url]
5-
[![Build status][travis-image]][travis-url]
6-
[![Test coverage][coveralls-image]][coveralls-url]
5+
[![Build status][build-image]][build-url]
6+
[![Build coverage][coverage-image]][coverage-url]
77

88
> Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`.
99
@@ -111,11 +111,11 @@ module.exports = (objectToStringify) => {
111111

112112
MIT
113113

114-
[npm-image]: https://img.shields.io/npm/v/javascript-stringify.svg?style=flat
114+
[npm-image]: https://img.shields.io/npm/v/javascript-stringify
115115
[npm-url]: https://npmjs.org/package/javascript-stringify
116-
[downloads-image]: https://img.shields.io/npm/dm/javascript-stringify.svg?style=flat
116+
[downloads-image]: https://img.shields.io/npm/dm/javascript-stringify
117117
[downloads-url]: https://npmjs.org/package/javascript-stringify
118-
[travis-image]: https://img.shields.io/travis/blakeembrey/javascript-stringify.svg?style=flat
119-
[travis-url]: https://travis-ci.org/blakeembrey/javascript-stringify
120-
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/javascript-stringify.svg?style=flat
121-
[coveralls-url]: https://coveralls.io/r/blakeembrey/javascript-stringify?branch=master
118+
[build-image]: https://img.shields.io/github/workflow/status/blakeembrey/javascript-stringify/CI/main
119+
[build-url]: https://github.com/blakeembrey/javascript-stringify/actions/workflows/ci.yml?query=branch%3Amain
120+
[coverage-image]: https://img.shields.io/codecov/c/gh/blakeembrey/javascript-stringify
121+
[coverage-url]: https://codecov.io/gh/blakeembrey/javascript-stringify

0 commit comments

Comments
 (0)