Skip to content

Set current contexts to rosparam #1218

Set current contexts to rosparam

Set current contexts to rosparam #1218

Workflow file for this run

name: Run Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0, 0,12 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
firmware:
runs-on: ubuntu-latest
strategy:
matrix:
project_dir: [firmware/atom_echo_i2c_audio,
firmware/atom_s3_i2c_display,
firmware/esp_now_pairing,
]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO Project
run: pio run -d ${{ matrix.project_dir }}
typos:
name: Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: typos-action
uses: crate-ci/[email protected]
formatting:
name: Check Formatting
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install
run: pip install ruff
- name: Run Ruff
run: ruff check .
clang_format:
name: Check Clang Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install clang-format
run: |
python -m pip install --upgrade pip setuptools wheel
pip install clang-format
- name: Run clang-format
run: |
find . \( -iname '*.c' -o -iname '*.h' -o -iname '*.cpp' -o -iname '*.hpp' -o -iname '*.ino' \) ! -path '*/.*/*' -print0 | xargs -0 clang-format -i
git diff --exit-code