Skip to content

Commit

Permalink
test(ical2json): Use Github action (#37)
Browse files Browse the repository at this point in the history
* test(ical2json): Use Github action

* test(ical2json): npm install

* test(ical2json): Update coveralls

* test(ical2json): Fix reporting

* test(ical2json): Remove travis config and coveralls node package

* test(workflows): Clean up

* doc(README): Update test badge
  • Loading branch information
adrianlee44 committed Jan 7, 2021
1 parent 7ac67ae commit 57c885a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 380 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

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

- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
parallel: true

7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

A simple node package to convert iCal data (.ics file) to JSON format

[![Build Status](https://img.shields.io/travis/adrianlee44/ical2json/master.svg?style=flat-square)](https://travis-ci.org/adrianlee44/ical2json)
![Tests](https://github.com/adrianlee44/ical2json/workflows/Tests/badge.svg)
[![Coveralls branch](https://img.shields.io/coveralls/adrianlee44/ical2json/master.svg?style=flat-square)](https://coveralls.io/github/adrianlee44/ical2json?branch=master)

![David](https://img.shields.io/david/adrianlee44/ical2json.svg?style=flat-square)
![David](https://img.shields.io/david/dev/adrianlee44/ical2json.svg?style=flat-square)

## Getting started

Download and install from npm
Expand Down
Loading

0 comments on commit 57c885a

Please sign in to comment.