From b726806961aa8346c2620075424505d4009d623b Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 16 May 2021 09:01:40 +0200 Subject: [PATCH] Drop node 8 support (#35) Drop Travis support for github actions Update dependencies --- .github/workflow/linter.yml | 20 ++++++++++++++++ .github/workflow/tester.yml | 46 +++++++++++++++++++++++++++++++++++++ .travis.yml | 14 ----------- README.md | 1 - package.json | 14 +++++------ 5 files changed, 73 insertions(+), 22 deletions(-) create mode 100644 .github/workflow/linter.yml create mode 100644 .github/workflow/tester.yml delete mode 100644 .travis.yml diff --git a/.github/workflow/linter.yml b/.github/workflow/linter.yml new file mode 100644 index 0000000..9f68791 --- /dev/null +++ b/.github/workflow/linter.yml @@ -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 \ No newline at end of file diff --git a/.github/workflow/tester.yml b/.github/workflow/tester.yml new file mode 100644 index 0000000..7330745 --- /dev/null +++ b/.github/workflow/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: ['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 }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4642ede..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: node_js - -node_js: - - "10" - - "12" - - "node" - -script: - - npm run eslint - - npm run test-cov - -after_script: - - npm install coveralls - - nyc report --reporter=text-lcov | coveralls diff --git a/README.md b/README.md index b0d1f0a..6426d96 100644 --- a/README.md +++ b/README.md @@ -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]. diff --git a/package.json b/package.json index 4ea8dd8..ff179f1 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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" } }