Skip to content

Commit de0dd07

Browse files
authored
ci: enable GitHub Workflow instead of Travis CI (#74)
1 parent 049e1a8 commit de0dd07

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Node.js CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [10.x, 12.x, 14.x, 15.x]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- run: npm install
20+
- run: npm test
21+
- run: npm install [email protected]
22+
- run: npm test

.travis.yml

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
[![npm version][npm-image]][npm-url]
66
![Node.js Version Support][node-version]
7-
[![build status][travis-image]][travis-url]
7+
[![build status][ci-image]][ci-url]
88
[![Dependency Status][deps-image]][deps-url]
99
![License][license]
1010

@@ -114,8 +114,8 @@ If `allowJs: true` in your `tsconfig.json`, assertions in `test/**/*.(js|jsx)` a
114114

115115
[npm-image]: https://img.shields.io/npm/v/espower-typescript.svg
116116
[npm-url]: https://npmjs.org/package/espower-typescript
117-
[travis-image]: https://travis-ci.org/power-assert-js/espower-typescript.svg?branch=master
118-
[travis-url]: https://travis-ci.org/power-assert-js/espower-typescript
117+
[ci-image]: https://github.com/power-assert-js/espower-typescript/workflows/Node.js%20CI/badge.svg
118+
[ci-url]: https://github.com/power-assert-js/espower-typescript/actions?query=workflow%3A%22Node.js+CI%22
119119
[deps-image]: https://david-dm.org/power-assert-js/espower-typescript.svg
120120
[deps-url]: https://david-dm.org/power-assert-js/espower-typescript
121121
[node-version]: https://img.shields.io/badge/Node.js%20support-v8,v10,v12-brightgreen.svg

0 commit comments

Comments
 (0)