Skip to content

Commit

Permalink
Switch to github ci & drop node 10 support (#67)
Browse files Browse the repository at this point in the history
* Switch to github ci & drop node 10 support

* drop travis

* fix
  • Loading branch information
tomap committed Jan 6, 2022
1 parent 26fbb4e commit eb24841
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 28 deletions.
5 changes: 4 additions & 1 deletion .github/dependabot.yml
Expand Up @@ -4,4 +4,7 @@ updates:
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 20
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
46 changes: 46 additions & 0 deletions .github/workflows/tester.yml
@@ -0,0 +1,46 @@
name: Tester

on: [push, pull_request]

jobs:
tester:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ['12.x', '14.x', '16.x']
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Test
run: npm test -- --no-parallel
env:
CI: true
coverage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['14.x']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Coverage
run: npm run test-cov
env:
CI: true
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
@@ -1,6 +1,6 @@
# hexo-generator-tag

[![Build Status](https://travis-ci.org/hexojs/hexo-generator-tag.svg?branch=master)](https://travis-ci.org/hexojs/hexo-generator-tag)
[![Build Status](https://github.com/hexojs/hexo-generator-tag/workflows/Tester/badge.svg)](https://github.com/hexojs/hexo-generator-tag/actions?query=workflow%3ATester)
[![NPM version](https://badge.fury.io/js/hexo-generator-tag.svg)](https://www.npmjs.com/package/hexo-generator-tag)
[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-generator-tag.svg)](https://coveralls.io/r/hexojs/hexo-generator-tag?branch=master)

Expand Down Expand Up @@ -29,4 +29,4 @@ tag_generator:

MIT

[Hexo]: http://hexo.io/
[Hexo]: https://hexo.io/
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"eslint": "eslint .",
"test": "mocha test/index.js",
"test-cov": "nyc npm run test"
"test-cov": "nyc --reporter=lcovonly npm run test"
},
"directories": {
"lib": "./lib"
Expand All @@ -16,13 +16,13 @@
"lib/"
],
"repository": "hexojs/hexo-generator-tag",
"homepage": "http://hexo.io/",
"homepage": "https://hexo.io/",
"keywords": [
"hexo",
"generator",
"tag"
],
"author": "Tommy Chen <tommy351@gmail.com> (http://zespia.tw)",
"author": "Tommy Chen <tommy351@gmail.com> (https://zespia.tw)",
"license": "MIT",
"devDependencies": {
"chai": "^4.2.0",
Expand All @@ -36,6 +36,6 @@
"hexo-pagination": "2.0.0"
},
"engines": {
"node": ">=8.6.0"
"node": ">=12.13.0"
}
}

0 comments on commit eb24841

Please sign in to comment.