448 drawio template #513
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linter markdown and code | |
on: | |
pull_request: | |
branches: | |
- "main" | |
push: | |
branches: | |
- main | |
jobs: | |
linter: | |
name: Linter markdown and code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
# Execute the markdown linter | |
- name: Run the markdown linter | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: peterdavehello/markdownlint:0.32.2 | |
options: -v ${{ github.workspace }}:/md | |
run: markdownlint . | |
# Execute the python linter (executes even if the previous step failed) | |
- name: Run the python linter | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: alpine/flake8 | |
options: -v ${{ github.workspace }}:/apps | |
run: flake8 . |