Skip to content

Commit dbd521f

Browse files
committed
Switch from Travis to GitHub actions
1 parent 97f978a commit dbd521f

File tree

6 files changed

+7894
-14
lines changed

6 files changed

+7894
-14
lines changed

.github/workflows/test.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [14.x, 16.x]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
29+
- name: Install
30+
run: npm install
31+
32+
- name: Lint and format
33+
run: npm run lint
34+
35+
- name: Build
36+
run: npm run build
37+
38+
- name: Test
39+
run: npm run coverage
40+
41+
- name: Prepare coverage report
42+
run: npx nyc report --reporter=lcovonly
43+
44+
- name: Send coverage report to Coveralls
45+
uses: coverallsapp/github-action@master
46+
with:
47+
github-token: ${{ secrets.GITHUB_TOKEN }}

.npmignore

-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ lib/
77
spec/
88
.DS_Store
99
.editorconfig
10-
.travis.yml
1110
gh-pages.sh
1211
rollup.config.js

.travis.yml

-11
This file was deleted.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# React Tag Autocomplete
22

3-
[![Build status](https://api.travis-ci.com/i-like-robots/react-tags.svg?branch=main)](https://travis-ci.com/i-like-robots/react-tags) [![Coverage Status](https://coveralls.io/repos/github/i-like-robots/react-tags/badge.svg?branch=main)](https://coveralls.io/github/i-like-robots/react-tags)
3+
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/i-like-robots/react-tags/blob/main/LICENSE) ![build status](https://github.com/i-like-robots/react-tags/actions/workflows/test.yml/badge.svg?branch=main) [![Coverage Status](https://coveralls.io/repos/github/i-like-robots/react-tags/badge.svg?branch=main)](https://coveralls.io/github/i-like-robots/react-tags) [![npm version](https://img.shields.io/npm/v/react-tag-autocomplete.svg?style=flat)](https://www.npmjs.com/package/react-tag-autocomplete)
4+
45

56
React Tag Autocomplete is a simple tagging component ready to drop in your React projects. Originally based on the [React Tags project](http://prakhar.me/react-tags/example) by Prakhar Srivastav this version removes the drag-and-drop re-ordering functionality, adds appropriate roles and ARIA states and introduces a resizing text input. [View demo](http://i-like-robots.github.io/react-tags/).
67

0 commit comments

Comments
 (0)