Skip to content

Merge pull request #38 from fablab-bergamo/rfidDisablePeriod #25

Merge pull request #38 from fablab-bergamo/rfidDisablePeriod

Merge pull request #38 from fablab-bergamo/rfidDisablePeriod #25

Workflow file for this run

name: C++ Linter check
on:
workflow_dispatch:
push:
tags:
- '*' # Push events to all tags
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linter:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
variant:
- wokwi
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
~/.platformio/packages
key: ${{ runner.os }}-linter-${{ matrix.variant }}
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Use secrets.hpp.example as base for the build
run: cp conf/secrets.hpp.example conf/secrets.hpp
# save the output of the linter to a file
# and upload it as an artifact
- name: Check PlatformIO Project with linter
run: pio check --environment ${{ matrix.variant }} --fail-on-defect=high > ${{ matrix.variant }}-pio-check.txt
- name: Upload linter output
uses: actions/upload-artifact@v4
with:
name: PIO Check output
path: ${{ matrix.variant }}-pio-check.txt
retention-days: 90