ci: Quality gates and release management #29
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: | |
pull_request: | |
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: 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: PIO Lint | |
run: pio check --fail-on-defect=high --fail-on-defect=medium |