mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
23 lines
493 B
YAML
23 lines
493 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 }}
|