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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md index a16b02a..5985870 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- ### Updates linter workflow + Updates the linter workflow to use the new parent workflow in action-collection. + + CuBoulder/action-collection#7 + + Sister PR in: All the things +--- + - ### Create developer-sandbox-ci.yml new ci workflow ---