Skip to content

Commit 1823f48

Browse files
authored
Move testing from Travis to GitHub Actions (#38)
1 parent d1c913d commit 1823f48

File tree

4 files changed

+34
-6
lines changed

4 files changed

+34
-6
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and test
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
node-version:
14+
- 12
15+
- 14
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- run: npm install
26+
- run: npm run build
27+
- run: npm test
28+
29+
- uses: codecov/codecov-action@v1
30+
with:
31+
file: ./coverage/lcov.info

.travis.yml

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# GrainJS
22

33
[![npm version](https://badge.fury.io/js/grainjs.svg)](https://badge.fury.io/js/grainjs)
4-
[![Build Status](https://travis-ci.org/gristlabs/grainjs.svg?branch=master)](https://travis-ci.org/gristlabs/grainjs)
4+
[![Build status](https://github.com/gristlabs/grainjs/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/gristlabs/grainjs/actions/workflows/build-and-test.yml)
5+
[![codecov](https://codecov.io/gh/gristlabs/grainjs/branch/master/graph/badge.svg?token=1OIMMBLI6N)](https://codecov.io/gh/gristlabs/grainjs)
56

67
GrainJS is a Javascript (and TypeScript) library for building highly performant dynamic
78
applications.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
},
4545
"homepage": "https://github.com/gristlabs/grainjs#readme",
4646
"nyc": {
47+
"reporter": ["html", "text", "lcov"],
4748
"extension": [
4849
".ts"
4950
],

0 commit comments

Comments
 (0)