workflow: update linter.yml

This commit is contained in:
xiaoxian521 2021-09-19 17:23:41 +08:00
parent 9f8cc651bc
commit c10511b1a0

View File

@ -4,7 +4,7 @@
## Super Linter GitHub Actions ## ## Super Linter GitHub Actions ##
################################# #################################
################################# #################################
name: Lint Code Base name: Lint Code
# #
# Documentation: # Documentation:
@ -27,7 +27,7 @@ on:
jobs: jobs:
build: build:
# Name the Job # Name the Job
name: Lint Code Base name: Lint Code
# Set the agent to run on # Set the agent to run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -36,25 +36,9 @@ jobs:
################## ##################
steps: steps:
########################## ##########################
# Checkout the code base # # Checkout the code #
########################## ##########################
- name: Checkout Code - name: Lint
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: | run: |
yarn install yarn install
yarn lint yarn lint