Skip to content

Deduplicate firmware_image_type and migrate renumbered devices over OTA #915

Deduplicate firmware_image_type and migrate renumbered devices over OTA

Deduplicate firmware_image_type and migrate renumbered devices over OTA #915

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install uncrustify
run: sudo apt-get update && sudo apt-get install -y uncrustify
- name: Check code formatting
run: |
find src -name '*.c' -o -name '*.h' | xargs uncrustify -c uncrustify.cfg --check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pytests
run: |
sudo apt-get update
sudo apt-get install -y make python3 python3-pytest
- name: Run tests
run: make tests
image-types-changed:
# On PRs, check only entries changed vs the target branch, so pre-existing
# duplicates don't turn this permanently red. Re-fetches the base at run
# time, so re-running the PR validates against current main.
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y make python3 && pip install pyyaml
- name: Check changed firmware_image_type entries
run: |
git fetch origin ${{ github.base_ref }}
make tools/check_image_types_changed BASE_REF=origin/${{ github.base_ref }}