Macro Keypad #22
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: Lint and Format | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
permissions: | |
checks: write | |
contents: write | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Install ClangFormat | |
run: sudo apt-get install -y clang-format | |
- name: Install autopep8 | |
run: pip install --upgrade autopep8 | |
- name: Run linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
auto_fix: true | |
clang_format: true | |
clang_format_auto_fix: true | |
autopep8: true | |
autopep8_auto_fix: true |