-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add eslint github action --story=119540612
- Loading branch information
1 parent
c2a5483
commit 5e80c3c
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |