Skip to content

Instantly share code, notes, and snippets.

@Scofield-Idehen
Last active August 7, 2022 04:29
Show Gist options
  • Save Scofield-Idehen/222e4fd258359723c6839db29f3fa437 to your computer and use it in GitHub Desktop.
Save Scofield-Idehen/222e4fd258359723c6839db29f3fa437 to your computer and use it in GitHub Desktop.
---
#################################
#################################
## Super Linter GitHub actions ##
#################################
#################################
name: Lint Code Base
#
# Documentation:
# https://docs.GitHub.com/en/actions/learn-GitHub-actions/workflow-syntax-for-GitHub-actions
#
#############################
# Start the job on all push #
#############################
on:
push:
branches-ignore: [master, main]
# Remove the line above to run when pushing to master
pull_request:
branches: [master, 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:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v3
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: master
GitHub_TOKEN: ${{ secrets.GitHub_TOKEN }}
@Scofield-Idehen
Copy link
Author

review file

@Scofield-Idehen
Copy link
Author

reviewed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment