mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
17 lines
568 B
YAML
17 lines
568 B
YAML
name: quality
|
|
on: [push, pull_request]
|
|
jobs:
|
|
eslint:
|
|
name: Run ESLint
|
|
if: github.actor!= 'dependabot' # ignore the pull request which comes from user dependabot. See https://github.community/t/how-to-stop-github-actions-workflow-to-trigger-when-the-pull-request-is-from-dependabot-preview/116486/3
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
- run: npm ci
|
|
- name: Run ESLint
|
|
shell: pwsh
|
|
run: ./.github/workflows/eslint.ps1
|