Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint all files on Super Linter upgrade #1276

Merged
merged 2 commits into from
Sep 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,8 @@
## Linter GitHub Actions ##
###########################
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
# Documentation: https://github.com/github/super-linter/
#
# For the Web Almanac we have the following rule changes from the defaults:
# * Markdown - we're a bit more relaxed about this since authors may be less technical
# * Python - Only change from default is to set ignored-modules=flask, flask-talisman...etc.
# * CSS - Tweaked to ignore some Prince/Normalise exceptions and some whitespace exceptions
# * JS - default rules
# * JSON - default rules
# * YML - default rules
# Exception config files are in the .github/linters directory
#
name: Lint Code Base
Expand All @@ -23,13 +15,20 @@ jobs:
lint:
name: Lint Code Base
# Skip duplicate job for local branches
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
# except for linter upgrades (so it can be caught by below check to lint all)
if: |
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository ||
startsWith(github.event.pull_request.title,'Bump github/super-linter')
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Set VALIDATE_ALL_CODEBASE variable
if: github.event_name == 'push' || github.event_name == 'pull_request'
- name: Set VALIDATE_ALL_CODEBASE variable to false
# Only run the full workflow for manual runs or if upgrading the super linter
if: |
github.event_name != 'workflow' &&
startsWith(github.event.pull_request.title,'Bump github/super-linter') != true
run: |
echo "::set-env name=VALIDATE_ALL_CODEBASE::false"
- name: Lint Code Base
Expand Down