style: improve prettier integration (#662)
This commit is contained in:
1 parent
a0d4c66d6c
commit
72e0ca8e83
11 files changed
+99
-82
No files matched your search
@@ -7,16 +7,18 @@ on:
|
||||
# Triggers the workflow on push or pull request events but only for the develop branch
|
||||
push:
|
||||
branches: [develop]
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
pull_request_target:
|
||||
types: [synchronize, opened]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
checks: write # Needed to write annotations
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
style:
|
||||
init_style_jobs:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -24,6 +26,8 @@ jobs:
|
||||
steps:
|
||||
- name: Fetch repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v2
|
||||
@@ -40,4 +44,3 @@ jobs:
|
||||
prettier: true
|
||||
eslint_dir: src
|
||||
eslint_extensions: ts,vue
|
||||
prettier_dir: src
|
||||
Reference in new issue
Block a user