Skip to content

Commit

Permalink
Move testing from Travis to GitHub Actions (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsagal authored Dec 6, 2021
1 parent d1c913d commit 1823f48
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and test
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 12
- 14

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm run build
- run: npm test

- uses: codecov/codecov-action@v1
with:
file: ./coverage/lcov.info
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# GrainJS

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

GrainJS is a Javascript (and TypeScript) library for building highly performant dynamic
applications.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
},
"homepage": "https:/gristlabs/grainjs#readme",
"nyc": {
"reporter": ["html", "text", "lcov"],
"extension": [
".ts"
],
Expand Down

0 comments on commit 1823f48

Please sign in to comment.