Skip to content

Commit

Permalink
ci: change Travis to GitHub actions (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig authored Aug 15, 2021
1 parent 2cfcbfd commit a41a81b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 7 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'ci'

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
ci:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2'

- name: 'Use Node.js'
uses: 'actions/[email protected]'
with:
node-version: 'lts/*'

- name: 'Cache Node dependencies'
uses: 'actions/[email protected]'
with:
path: '~/.npm'
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: 'Install dependencies'
run: 'npm install'

- name: 'Run tests'
run: 'npm test'
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.travis.yml
test/
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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]
# 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]

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

0 comments on commit a41a81b

Please sign in to comment.