Skip to content

Commit

Permalink
ci: ditch travis in favor of github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandjitsu committed Nov 16, 2019
1 parent 7e5f7b4 commit 2feced7
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 22 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release
on:
push:
branches:
- master

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [8, 10, 12]

steps:
- uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: Install
run: npm ci
- name: Test
run: npm test
21 changes: 0 additions & 21 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,7 +1,7 @@
# attr-accept
JavaScript implementation of the "accept" attribute for HTML5 `<input type="file">`

[![Build Status](https://travis-ci.org/react-dropzone/attr-accept.svg?branch=master)](https://travis-ci.org/react-dropzone/attr-accept)
![](https://github.com/react-dropzone/attr-accept/workflows/Test/badge.svg)
[![npm version](https://badge.fury.io/js/attr-accept.svg)](https://badge.fury.io/js/attr-accept)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Expand Down

0 comments on commit 2feced7

Please sign in to comment.