Skip to content

Commit

Permalink
replace travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ovhemert committed Jul 28, 2020
1 parent 672ae9d commit 201563f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 10 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Restore cached dependencies
uses: actions/cache@v1
with:
path: node_modules
key: node-modules-${{ hashFiles('package.json') }}
- name: Install dependencies
run: npm install
- name: Run Tests
run: npm test
- name: Coveralls
uses: coverallsapp/github-action@master
env:
COVERALLS_FLAG_NAME: run-${{ matrix.os }}-${{ matrix.node-version }}
with:
github-token: ${{ secrets.github_token }}
parallel: true
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# batch2

[![Travis](https://img.shields.io/travis/com/ovhemert/batch2.svg?branch=master&logo=travis)](https://travis-ci.com/ovhemert/batch2)
[![CI](https://github.com/ovhemert/batch2/workflows/CI/badge.svg)](https://github.com/ovhemert/batch2/actions)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/706df16ae6124bb782e7e4a78a0bcfc3)](https://www.codacy.com/app/ovhemert/batch2?utm_source=github.com&utm_medium=referral&utm_content=ovhemert/batch2&utm_campaign=Badge_Grade)
[![Known Vulnerabilities](https://snyk.io/test/npm/batch2/badge.svg)](https://snyk.io/test/npm/batch2)
[![Coverage Status](https://coveralls.io/repos/github/ovhemert/batch2/badge.svg?branch=master)](https://coveralls.io/github/ovhemert/batch2?branch=master)
Expand Down

0 comments on commit 201563f

Please sign in to comment.