mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-12-03 11:49:21 +08:00
47 lines
1020 B
YAML
47 lines
1020 B
YAML
---
|
|
#################################
|
|
#################################
|
|
## Super Linter GitHub Actions ##
|
|
#################################
|
|
#################################
|
|
name: Lint Code Base
|
|
|
|
#
|
|
# Documentation:
|
|
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
#
|
|
|
|
#############################
|
|
# Start the job on all push #
|
|
#############################
|
|
on:
|
|
pull_request:
|
|
branches: main
|
|
|
|
###############
|
|
# Set the Job #
|
|
###############
|
|
jobs:
|
|
build:
|
|
# Name the Job
|
|
name: Lint Code Base
|
|
# Set the agent to run on
|
|
runs-on: ubuntu-latest
|
|
|
|
##################
|
|
# Load all steps #
|
|
##################
|
|
steps:
|
|
################################
|
|
# Run Linter against code base #
|
|
################################
|
|
- name: Lint
|
|
run: |
|
|
yarn install
|
|
yarn lint
|
|
yarn run build
|
|
env:
|
|
VALIDATE_ALL_CODEBASE: false
|
|
DEFAULT_BRANCH: main
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|