Skip to content

Commit a41a81b

Browse files
authored
ci: change Travis to GitHub actions (#189)
1 parent 2cfcbfd commit a41a81b

4 files changed

Lines changed: 35 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'ci'
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
ci:
11+
runs-on: 'ubuntu-latest'
12+
steps:
13+
- uses: 'actions/checkout@v2'
14+
15+
- name: 'Use Node.js'
16+
uses: 'actions/setup-node@v2.4.0'
17+
with:
18+
node-version: 'lts/*'
19+
20+
- name: 'Cache Node dependencies'
21+
uses: 'actions/cache@v2.1.6'
22+
with:
23+
path: '~/.npm'
24+
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
25+
restore-keys: |
26+
${{ runner.os }}-node-
27+
28+
- name: 'Install dependencies'
29+
run: 'npm install'
30+
31+
- name: 'Run tests'
32+
run: 'npm test'

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
.travis.yml
21
test/

.travis.yml

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# eslint-config-standard [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
1+
# eslint-config-standard [![CI][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
22

3-
[travis-image]: https://img.shields.io/travis/standard/eslint-config-standard/master.svg
4-
[travis-url]: https://travis-ci.org/standard/eslint-config-standard
3+
[ci-image]: https://github.com/standard/eslint-config-standard/actions/workflows/ci.yml/badge.svg?branch=master
4+
[ci-url]: https://github.com/standard/eslint-config-standard/actions/workflows/ci.yml
55
[npm-image]: https://img.shields.io/npm/v/eslint-config-standard.svg
66
[npm-url]: https://npmjs.org/package/eslint-config-standard
77
[downloads-image]: https://img.shields.io/npm/dm/eslint-config-standard.svg

0 commit comments

Comments
 (0)