ci: Switch arduino-lint to "update" mode #63
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: Quality Gates | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: arduino-lint | |
uses: arduino/arduino-lint-action@v1 | |
with: | |
library-manager: update | |
compliance: strict | |
- name: Code format | |
uses: jidicula/clang-format-action@v4.11.0 | |
with: | |
clang-format-version: '15' # equals to PIO clang version | |
check-path: 'src' | |
- name: Cache pio and pip | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
- name: Code lint | |
run: pio check --fail-on-defect=high --fail-on-defect=medium |