-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.3 KB
/
tests.yml
File metadata and controls
54 lines (44 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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