Skip to content

Commit

Permalink
chore: using git actions instead of travis ( linux / darwin )
Browse files Browse the repository at this point in the history
PR-URL: #93
Reviewed-BY: hyj1991 <[email protected]>
  • Loading branch information
hyj1991 authored Nov 12, 2020
1 parent fac362b commit c446ebb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Continuous integration
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
schedule:
- cron: '0 2 * * *'
jobs:
Runner:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest ]
node-version: [ 8, 9, 10, 11, 12, 13, 14, 15 ]
steps:
- name: Checkout Git Source
uses: actions/checkout@master

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

- name: Install Dependencies
run: npm i -g npminstall && npminstall

- name: Continuous integration
run: npm run ci
17 changes: 0 additions & 17 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
Expand Up @@ -2,7 +2,7 @@

[![Npm](https://img.shields.io/npm/v/xprofiler)](https://www.npmjs.com/package/xprofiler)
[![Codecov branch](https://img.shields.io/codecov/c/github/X-Profiler/xprofiler/master)](https://codecov.io/gh/X-Profiler/xprofiler/branch/master)
[![Linux/osx build status](https://travis-ci.org/X-Profiler/xprofiler.svg?branch=master)](https://travis-ci.org/github/X-Profiler/xprofiler)
[![Linux/osx build status](https://github.com/X-Profiler/xprofiler/workflows/Continuous%20integration/badge.svg)](https://github.com/X-Profiler/xprofiler/actions?query=branch%3Amaster)
[![Windows build status](https://ci.appveyor.com/api/projects/status/e5xtotum6lbi3mt7/branch/master?svg=true)](https://ci.appveyor.com/project/hyj1991/xprofiler/branch/master)
[![Npm](https://img.shields.io/npm/dm/xprofiler)](https://www.npmjs.com/package/xprofiler)
[![License](https://img.shields.io/github/license/X-Profiler/xprofiler)](LICENSE)
Expand Down

0 comments on commit c446ebb

Please sign in to comment.