Skip to content

Commit

Permalink
ci(gh-actions): migrate from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
VovanR committed Dec 30, 2020
1 parent a53d391 commit 8b246af
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 30 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests
on: [push, pull_request]

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 15
- 14
- 12
- 10
steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci

- run: npm test
env:
CI: true

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,3 @@

<a name="0.1.0"></a>
# 0.1.0 (2016-06-10)



8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![XO code style][codestyle-image]][codestyle-url]

[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Build Status][build-image]][build-url]
[![Coveralls Status][coveralls-image]][coveralls-url]
[![Dependency Status][depstat-image]][depstat-url]
[![DevDependency Status][depstat-dev-image]][depstat-dev-url]
Expand Down Expand Up @@ -43,14 +43,14 @@ MIT © [Vladimir Rodkin](https://github.com/VovanR)
[commitizen-url]: https://commitizen.github.io/cz-cli/
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square

[codestyle-url]: https://github.com/sindresorhus/xo
[codestyle-url]: https://github.com/xojs/xo
[codestyle-image]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square

[npm-url]: https://npmjs.org/package/hour-to-chinese-zodiac
[npm-image]: https://img.shields.io/npm/v/hour-to-chinese-zodiac.svg?style=flat-square

[travis-url]: https://travis-ci.org/VovanR/hour-to-chinese-zodiac
[travis-image]: https://img.shields.io/travis/VovanR/hour-to-chinese-zodiac.svg?style=flat-square
[build-url]: https://github.com/VovanR/hour-to-chinese-zodiac/actions?query=workflow%3A%22Tests%22
[build-image]: https://img.shields.io/github/workflow/status/VovanR/hour-to-chinese-zodiac/Tests?style=flat-square

[coveralls-url]: https://coveralls.io/r/VovanR/hour-to-chinese-zodiac
[coveralls-image]: https://img.shields.io/coveralls/VovanR/hour-to-chinese-zodiac.svg?style=flat-square
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,29 @@
"description": "Convert hour to chinese zodiac name: 8 → 'dragon'",
"license": "MIT",
"repository": "VovanR/hour-to-chinese-zodiac",
"homepage": "https://github.com/VovanR/hour-to-chinese-zodiac#readme",
"bugs": "https://github.com/VovanR/hour-to-chinese-zodiac/issues",
"author": "Vladimir Rodkin <mail@vovanr.com> (https://github.com/VovanR)",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"main": "index.js",
"engines": {
"node": ">=10"
},
"scripts": {
"prepush": "npm test",
"test": "xo --no-esnext && nyc ava",
"test": "xo && nyc ava",
"tdd": "ava -w",
"release-patch": "mversion patch",
"release-minor": "mversion minor",
"release-major": "mversion major",
"deploy": "gh-pages -d example",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"deploy": "gh-pages -d example"
},
"files": [
"index.js"
],
"main": "index.js",
"keywords": [
"convert",
"hour",
Expand All @@ -40,18 +45,16 @@
"nyc": "^15.1.0",
"xo": "^0.36.1"
},
"bugs": {
"url": "https://github.com/VovanR/hour-to-chinese-zodiac/issues"
},
"homepage": "https://github.com/VovanR/hour-to-chinese-zodiac#readme",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"xo": {
"esnext": false,
"space": true
},
"nyc": {
"reporter": [
"lcov",
"text"
]
},
"husky": {
"hooks": {
"pre-push": "npm test"
Expand Down

0 comments on commit 8b246af

Please sign in to comment.