-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (50 loc) · 1.28 KB
/
ubuntu-tests.yml
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
55
56
57
58
59
60
61
name: Ubuntu tests
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
QT_DEBUG_PLUGINS: 1
CTEST_OUTPUT_ON_FAILURE: 1
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
version: '5.15.2'
- name: Install project dependencies
run: |
- name: Configure
run: |
cmake -S. -Bbuild/tests -DCMAKE_BUILD_TYPE=Debug -DCODE_COVERAGE=1
- name: Build
run: cmake --build build/tests -j4
- name: Test
run: |
cd build/tests
ctest -V
ctest -V -T coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./build/tests/Testing/CoverageInfo
fail_ci_if_error: true
verbose: true