Skip to content

Commit

Permalink
Drop node 8 support (#35)
Browse files Browse the repository at this point in the history
Drop Travis support for github actions
Update dependencies
  • Loading branch information
tomap authored May 16, 2021
1 parent 265cbe0 commit b726806
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 22 deletions.
20 changes: 20 additions & 0 deletions .github/workflow/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Linter

on: [push, pull_request]

jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Install Dependencies
run: npm install
- name: Lint
run: |
npm run eslint
env:
CI: true
46 changes: 46 additions & 0 deletions .github/workflow/tester.yml
Original file line number Diff line number Diff line change
@@ -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: ['10.x', '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 }}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# hexo-clean-css

[![Build Status](https://travis-ci.org/hexojs/hexo-clean-css.svg?branch=master)](https://travis-ci.org/hexojs/hexo-clean-css)
[![NPM version](https://badge.fury.io/js/hexo-clean-css.svg)](https://www.npmjs.com/package/hexo-clean-css)

Minify CSS files with [clean-css].
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-clean-css",
"version": "1.0.0",
"version": "2.0.0",
"description": "Minify CSS files with clean-css.",
"main": "index.js",
"scripts": {
Expand All @@ -27,16 +27,16 @@
"license": "MIT",
"dependencies": {
"clean-css": "^5.1.2",
"micromatch": "^4.0.2"
"micromatch": "^4.0.4"
},
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^7.1.0",
"chai": "^4.3.4",
"eslint": "^7.26.0",
"eslint-config-hexo": "^4.1.0",
"mocha": "^8.0.1",
"nyc": "^15.0.0"
"mocha": "^8.4.0",
"nyc": "^15.1.0"
},
"engines": {
"node": ">= 8.6.0"
"node": ">= 10.18.1"
}
}

0 comments on commit b726806

Please sign in to comment.