Skip to content

Commit

Permalink
Switch from Travis to GitHub Actions (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
danoc committed Jun 6, 2020
1 parent 71732c2 commit 7d9bd39
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 7 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Test

on: [push]

jobs:
jest:
name: Jest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Run Jest
run: |
yarn run test:jest
tslint:
name: TSLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Run TSLint
run: |
yarn run test:tslint
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Run Prettier
run: |
yarn run test:prettier
6 changes: 0 additions & 6 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 @@
# 📋 react-use-clipboard

[![NPM version](https://badgen.net/npm/v/react-use-clipboard)](https://www.npmjs.com/package/react-use-clipboard) [![Build status](https://badgen.net/travis/danoc/react-use-clipboard)](https://travis-ci.com/danoc/react-use-clipboard) [![Code coverage](https://badgen.net/codecov/c/github/danoc/react-use-clipboard)](https://codecov.io/gh/danoc/react-use-clipboard) [![Bundle size](https://badgen.net/bundlephobia/min/react-use-clipboard?label=size)](https://bundlephobia.com/result?p=react-use-clipboard) [![Bundle size](https://badgen.net/bundlephobia/minzip/react-use-clipboard?label=gzip%20size)](https://bundlephobia.com/result?p=react-use-clipboard)
[![NPM version](https://badgen.net/npm/v/react-use-clipboard)](https://www.npmjs.com/package/react-use-clipboard) [![Test build status](https://github.com/danoc/react-use-clipboard/workflows/Test/badge.svg)](https://github.com/danoc/react-use-clipboard/actions?query=workflow%3ATest) [![Bundle size](https://badgen.net/bundlephobia/min/react-use-clipboard?label=size)](https://bundlephobia.com/result?p=react-use-clipboard) [![Bundle size](https://badgen.net/bundlephobia/minzip/react-use-clipboard?label=gzip%20size)](https://bundlephobia.com/result?p=react-use-clipboard)

> A React Hook that provides copy to clipboard functionality.
Expand Down

0 comments on commit 7d9bd39

Please sign in to comment.