mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
30 lines
718 B
YAML
30 lines
718 B
YAML
name: Linter
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
linter:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v2
|
|
- name: Install Dependencies
|
|
run: npm install
|
|
- run: npm run eslint
|
|
- name: Coverage
|
|
run: npx nyc --reporter=lcovonly npm test
|
|
env:
|
|
CI: true
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@master
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
- name: Install Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install curlylint
|
|
- run: curlylint --include .njk layout
|