hexo/node_modules/cpu-features/.github/workflows/lint.yml

28 lines
586 B
YAML
Raw Normal View History

2023-09-30 15:31:08 +08:00
name: lint
on:
pull_request:
push:
branches: [ master ]
env:
NODE_VERSION: 20.x
jobs:
lint-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Check Node.js version
run: node -pe process.versions
- name: Install ESLint + ESLint configs/plugins
run: npm install
- name: Lint files
run: npm run lint