Skip to content

Commit 2feced7

Browse files
committed
ci: ditch travis in favor of github actions
1 parent 7e5f7b4 commit 2feced7

File tree

4 files changed

+46
-22
lines changed

4 files changed

+46
-22
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
release:
9+
name: release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: "12.x"
16+
- run: npm ci
17+
- run: npx semantic-release
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node_version: [8, 10, 12]
15+
16+
steps:
17+
- uses: actions/checkout@master
18+
- name: Use Node.js ${{ matrix.node_version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node_version }}
22+
- name: Install
23+
run: npm ci
24+
- name: Test
25+
run: npm test

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# attr-accept
22
JavaScript implementation of the "accept" attribute for HTML5 `<input type="file">`
33

4-
[![Build Status](https://travis-ci.org/react-dropzone/attr-accept.svg?branch=master)](https://travis-ci.org/react-dropzone/attr-accept)
4+
![](https://github.com/react-dropzone/attr-accept/workflows/Test/badge.svg)
55
[![npm version](https://badge.fury.io/js/attr-accept.svg)](https://badge.fury.io/js/attr-accept)
66
[![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)
77

0 commit comments

Comments
 (0)