Skip to content

Commit

Permalink
Merge pull request #236 from lo1tuma/gh-actions
Browse files Browse the repository at this point in the history
Use github actions instead  of travis ci
  • Loading branch information
lo1tuma committed Sep 27, 2020
2 parents ff24960 + 6bbb7f7 commit a73eff8
Show file tree
Hide file tree
Showing 5 changed files with 1,710 additions and 2,447 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12, 14]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
timeout-minutes: 20
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./build/coverage/lcov.info
parallel: true
coverage:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![NPM Version](https://img.shields.io/npm/v/pr-log.svg?style=flat)](https://www.npmjs.org/package/pr-log)
[![Build Status](https://img.shields.io/travis/lo1tuma/pr-log/master.svg?style=flat)](https://travis-ci.org/lo1tuma/pr-log)
[![Coverage Status](https://img.shields.io/coveralls/lo1tuma/pr-log.svg?style=flat)](https://coveralls.io/r/lo1tuma/pr-log)
[![GitHub Actions status](https://github.com/lo1tuma/pr-log/workflows/CI/badge.svg)](https://github.com/lo1tuma/pr-log/actions)
[![Coverage Status](https://img.shields.io/coveralls/lo1tuma/pr-log/master.svg?style=flat)](https://coveralls.io/r/lo1tuma/pr-log)
[![Dependencies](https://img.shields.io/david/lo1tuma/pr-log.svg?style=flat)](https://david-dm.org/lo1tuma/pr-log)

-----
Expand Down

0 comments on commit a73eff8

Please sign in to comment.