From 88773f8be6fb92e93d89ccb9500ac315a76c8c47 Mon Sep 17 00:00:00 2001 From: Timur Tripp Date: Tue, 15 Oct 2024 13:54:02 -0600 Subject: [PATCH] CuBoulder/action-collection#7 Updates linter workflow --- .github/workflows/lint.yml | 9 ++++++ .github/workflows/main.yml | 62 -------------------------------------- 2 files changed, 9 insertions(+), 62 deletions(-) create mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..92d3a04 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,9 @@ +name: Lint Code Base +on: + push: + branches: [main] + pull_request: + workflow_dispatch: +jobs: + lint: + uses: CuBoulder/action-collection/.github/workflows/lint.yml@main diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index ed4d836..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,62 +0,0 @@ ---- -################################# -################################# -## 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: [main] - pull_request: - workflow_dispatch: - -############### -# 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/slim@v4 - env: - VALIDATE_ALL_CODEBASE: false - VALIDATE_JAVASCRIPT_ES: true - VALIDATE_CSS: true - VALIDATE_HTML: true - VALIDATE_YAML: true - VALIDATE_GITLEAKS: true - VALIDATE_GITHUB_ACTIONS: true - VALIDATE_MARKDOWN: true - VALIDATE_PHP: true - DEFAULT_BRANCH: main - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}