From 8458d5d37b25506446f98063471ea2adbacc2a5c Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 19 Sep 2021 18:07:38 +0800 Subject: [PATCH] workflow: update linter.yml open Allow all actions --- .github/workflows/linter.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index e219928bb..b4c1c118b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -38,10 +38,24 @@ jobs: ########################## # Checkout the code base # ########################## - - name: Build + - name: Checkout Code + uses: actions/checkout@v2 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: github/super-linter@v4 env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Build run: | - npm run install - npm run lint - npm run build + yarn install + yarn lint + yarn run build