Skip to content

Commit

Permalink
add superlinter to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacata committed Jun 20, 2024
1 parent 27dd9ac commit 2e300fe
Showing 1 changed file with 39 additions and 12 deletions.
51 changes: 39 additions & 12 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,44 @@ jobs:
- name: Check code style with Black
run: |
black --check --diff --line-length 79 .
mdformat:
name: mdformat
if: ${{ inputs.mdformat-version != '' }}
super-linter-md:
name: GitHub Super Linter Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip3 install mdformat==${{ inputs.mdformat-version }}
mdformat --version
- name: Check code style with mdformat
run: |
mdformat --check .
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0
- name: Lint code base
uses: super-linter/super-linter/slim@88ea3923a7e1f89dd485d079f6eb5f5e8f937589 # v6.6.0
env:
DEFAULT_BRANCH: main
VALIDATE_MARKDOWN: true
super-linter:
name: GitHub Super Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0
- name: Lint code base
uses: super-linter/super-linter/slim@88ea3923a7e1f89dd485d079f6eb5f5e8f937589 # v6.6.0
env:
DEFAULT_BRANCH: main
# (see https://github.com/github/super-linter#environment-variables)
VALIDATE_BASH: true
VALIDATE_BASH_EXEC: true
VALIDATE_CSS: true
VALIDATE_DOCKER: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_HTML: true
VALIDATE_JAVASCRIPT_ES: true
VALIDATE_JAVASCRIPT_STANDARD: true
VALIDATE_JSON: true
VALIDATE_POWERSHELL: true
VALIDATE_RENOVATE: true
VALIDATE_XML: true
VALIDATE_YAML: true

0 comments on commit 2e300fe

Please sign in to comment.