2021-09-19 17:16:41 +08:00
|
|
|
---
|
|
|
|
#################################
|
|
|
|
#################################
|
|
|
|
## Super Linter GitHub Actions ##
|
|
|
|
#################################
|
|
|
|
#################################
|
2021-09-19 17:32:47 +08:00
|
|
|
name: Lint Code Base
|
2021-09-19 17:16:41 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Documentation:
|
|
|
|
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
|
|
#
|
|
|
|
|
|
|
|
#############################
|
|
|
|
# Start the job on all push #
|
|
|
|
#############################
|
|
|
|
on:
|
2021-09-27 12:29:09 +08:00
|
|
|
push:
|
2021-10-11 14:21:37 +08:00
|
|
|
branches:
|
|
|
|
- main
|
2021-10-12 23:24:31 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2021-09-19 17:16:41 +08:00
|
|
|
|
|
|
|
###############
|
|
|
|
# Set the Job #
|
|
|
|
###############
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
# Name the Job
|
2021-09-19 17:32:47 +08:00
|
|
|
name: Lint Code Base
|
2021-09-19 17:16:41 +08:00
|
|
|
# Set the agent to run on
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
##################
|
|
|
|
# Load all steps #
|
|
|
|
##################
|
|
|
|
steps:
|
2021-09-27 12:29:09 +08:00
|
|
|
##########################
|
|
|
|
# Checkout the code base #
|
|
|
|
##########################
|
|
|
|
- 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
|
|
|
|
|
|
|
|
- name: Build
|
2021-09-25 20:58:48 +08:00
|
|
|
run: |
|
|
|
|
yarn install
|
|
|
|
yarn lint
|
2021-10-11 14:21:37 +08:00
|
|
|
yarn build
|
2021-09-19 17:32:47 +08:00
|
|
|
env:
|
2021-09-19 18:07:38 +08:00
|
|
|
VALIDATE_ALL_CODEBASE: false
|
|
|
|
DEFAULT_BRANCH: main
|
2021-09-19 17:32:47 +08:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|