Skip to content

Commit

Permalink
feat: add eslint github action --story=119540612
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Sep 6, 2024
1 parent c2a5483 commit 5e80c3c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is a basic workflow to help you get started with Actions

name: frontend code eslint

on:
push:
branches: [ master, develop, release*, feature* ]
pull_request:
branches: [ master, develop, release*, feature* ]

jobs:
eslint:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: |
cd frontend
npm install
- name: Run Eslint
run: |
cd frontend
npx eslint --ext .js,.vue src/

0 comments on commit 5e80c3c

Please sign in to comment.