Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop node 10 #46

Merged
merged 4 commits into from
Aug 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ updates:
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 20
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
27 changes: 27 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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: Cache NPM dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Lint
run: |
npm run eslint
env:
CI: true
58 changes: 58 additions & 0 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
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@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache NPM dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-npm-cache
restore-keys: ${{ runner.os }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Test
run: npm run test
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: Cache NPM dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-npm-cache
restore-keys: ${{ runner.os }}-npm-cache
- 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 }}
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# [EJS] renderer

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

Add support for [EJS].

**Now works with EJS v2!**
**Now works with EJS v3!**

## Install

Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
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 @@ -27,17 +27,17 @@
],
"license": "MIT",
"dependencies": {
"ejs": "^3.0.1"
"ejs": "^3.1.6"
},
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^7.0.0",
"eslint-config-hexo": "^4.0.0",
"hexo-fs": "^3.0.1",
"mocha": "^8.0.1",
"nyc": "^15.0.0"
"chai": "^4.3.4",
"eslint": "^7.32.0",
"eslint-config-hexo": "^4.2.0",
"hexo-fs": "^3.1.0",
"mocha": "^8.4.0",
"nyc": "^15.1.0"
},
"engines": {
"node": ">=10.13.0"
"node": ">=12"
}
}