Files
Nick Brassel 8380b05c39 Add sanitizers to unit tests. (#26571)
* Fix out-of-bounds read in encoder test initialisation

* Reject out-of-range tracks in sequencer track activation

* Compare unaligned flash word bytewise in emulated EEPROM test

* Abort on out-of-range access in the test platform EEPROM emulation

* Add SANITIZE=yes to the native unit test build
2026-11-12 12:28:46 +11:00

44 lines
749 B
YAML

name: Unit Tests
permissions:
contents: read
on:
push:
branches:
- master
- develop
pull_request:
paths:
- 'builddefs/**'
- '!builddefs/docsgen/**'
- 'quantum/**'
- 'platforms/**'
- 'tmk_core/**'
- 'tests/**'
- '*.mk'
- 'Makefile'
- '.github/workflows/unit_test.yml'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sanitize: ['no', 'yes']
container: ghcr.io/qmk/qmk_cli
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
- name: Install dependencies
run: pip3 install -r requirements-dev.txt
- name: Run tests
run: qmk test-c -j $(nproc) -e SANITIZE=${{ matrix.sanitize }}