chore: Add CI check job to consolidate status (#696)

## Summary

* Add CI check job to consolidate status

## Additional Context

* As in the inline comment:
> This job is used as the PR required actions check, allows for changes
to other steps in the future without breaking PR requirements.

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? No
This commit is contained in:
Dave Allie 2026-02-05 23:08:16 +11:00 committed by GitHub
parent 216dbc8ee3
commit 768c2f8eed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,3 +89,21 @@ jobs:
name: firmware.bin name: firmware.bin
path: .pio/build/default/firmware.bin path: .pio/build/default/firmware.bin
if-no-files-found: error if-no-files-found: error
# This job is used as the PR required actions check, allows for changes to other steps in the future without breaking
# PR requirements.
test-status:
name: Test Status
needs:
- build
- clang-format
- cppcheck
if: always()
runs-on: ubuntu-latest
steps:
- name: Fail because needed jobs failed
# Fail if any job failed or was cancelled (skipped jobs are ok)
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1
- name: Success
run: exit 0