2019-10-21 10:12:50 -04:00
|
|
|
---
|
2019-10-23 11:17:46 -04:00
|
|
|
############################
|
|
|
|
############################
|
|
|
|
## Preflight Stack Linter ##
|
|
|
|
############################
|
|
|
|
############################
|
2019-10-21 10:12:50 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Documentation:
|
|
|
|
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
|
|
#
|
|
|
|
|
2022-02-21 10:17:34 -05:00
|
|
|
name: Stack Linter
|
|
|
|
|
2019-10-21 10:12:50 -04:00
|
|
|
#############################
|
|
|
|
# Start the job on all push #
|
|
|
|
#############################
|
2019-11-08 10:17:10 -05:00
|
|
|
on:
|
2020-07-21 13:08:50 -04:00
|
|
|
pull_request:
|
2022-01-06 10:28:26 -05:00
|
|
|
|
2019-10-21 10:12:50 -04:00
|
|
|
###############
|
|
|
|
# Set the Job #
|
|
|
|
###############
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
# Name the Job
|
2019-10-23 11:17:46 -04:00
|
|
|
name: Stack linter
|
2019-10-21 10:12:50 -04:00
|
|
|
# Set the agent to run on
|
|
|
|
runs-on: ubuntu-latest
|
2021-11-15 11:25:36 -05:00
|
|
|
timeout-minutes: 60
|
2019-10-21 10:12:50 -04:00
|
|
|
##################
|
|
|
|
# Load all steps #
|
|
|
|
##################
|
|
|
|
steps:
|
|
|
|
##########################
|
|
|
|
# Checkout the code base #
|
|
|
|
##########################
|
|
|
|
- name: Checkout Code
|
2022-03-07 10:34:26 -05:00
|
|
|
uses: actions/checkout@v3
|
2020-10-09 07:17:56 -04:00
|
|
|
with:
|
|
|
|
# Full git history is needed to get a proper list of changed files within `super-linter`
|
|
|
|
fetch-depth: 0
|
2019-10-21 10:12:50 -04:00
|
|
|
|
2019-10-23 11:17:46 -04:00
|
|
|
################################
|
|
|
|
# Run Linter against code base #
|
|
|
|
################################
|
|
|
|
- name: Lint Code Base
|
2021-01-30 01:35:36 -05:00
|
|
|
uses: docker://ghcr.io/github/super-linter:latest
|
2020-04-29 08:48:12 -04:00
|
|
|
env:
|
2020-10-14 04:59:34 -04:00
|
|
|
ACTIONS_RUNNER_DEBUG: true
|
2020-11-20 10:12:31 -05:00
|
|
|
ERROR_ON_MISSING_EXEC_BIT: true
|
2020-04-29 08:48:12 -04:00
|
|
|
VALIDATE_ALL_CODEBASE: false
|
2020-07-21 14:55:27 -04:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-10-01 21:40:25 -04:00
|
|
|
DEFAULT_BRANCH: main
|