Skip to content

Commit 4656788

Browse files
committed
Use Github Actions instead of Travis CI
PR-URL: #41
1 parent 023d5fe commit 4656788

File tree

4 files changed

+34
-7
lines changed

4 files changed

+34
-7
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* -text

.github/workflows/test.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Testing CI
2+
3+
on: pull_request
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
node:
12+
- 12
13+
- 14
14+
os:
15+
- ubuntu-latest
16+
- windows-latest
17+
- macos-latest
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node }}
25+
- uses: actions/cache@v2
26+
with:
27+
path: ~/.npm
28+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-node-
31+
- run: npm ci
32+
- run: npm test

.travis.yml

-6
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Concolor
22

3-
[![TravisCI](https://travis-ci.org/metarhia/concolor.svg?branch=master)](https://travis-ci.org/metarhia/concolor)
3+
[![CI Status](https://github.com/metarhia/concolor/workflows/Testing%20CI/badge.svg)](https://github.com/metarhia/concolor/actions?query=workflow%3A%22Testing+CI%22+branch%3Amaster)
44
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6f4f133090d64f178d099f86521ec117)](https://www.codacy.com/app/metarhia/concolor)
55
[![NPM Version](https://badge.fury.io/js/concolor.svg)](https://badge.fury.io/js/concolor)
66
[![NPM Downloads/Month](https://img.shields.io/npm/dm/concolor.svg)](https://www.npmjs.com/package/concolor)

0 commit comments

Comments
 (0)