small refactor of some spi and timerwrapper functionality #507
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [ development ] | |
| concurrency: | |
| group: tests-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake ninja-build build-essential | |
| - name: Cache simulator deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: out/build/simulator/_deps | |
| key: simulator-deps-${{ runner.os }}-${{ hashFiles('CMakeLists.txt', 'Tests/CMakeLists.txt') }} | |
| restore-keys: | | |
| simulator-deps-${{ runner.os }}- | |
| - name: Configure (CMake) | |
| run: | | |
| cmake --preset simulator | |
| - name: Build | |
| run: | | |
| cmake --build --preset simulator | |
| - name: Run tests (ctest) | |
| run: | | |
| ctest --preset simulator-all | |
| - name: Upload test reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: simulator-test-reports | |
| path: | | |
| out/build/simulator/Testing/Temporary/LastTest.log | |
| retention-days: 7 | |
| if-no-files-found: ignore |