-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1 KB
/
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
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
jobs:
run-tests:
runs-on: ubuntu-22.04
strategy:
matrix:
flag: [--static, --shared]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
env:
QT_INSTALLER_JWT_TOKEN: ${{ secrets.QT_INSTALLER_JWT_TOKEN }}
run: |
echo "With flag ${{ matrix.flag }}"
./scripts/setup ${{ matrix.flag }}
- name: Build project
run: |
./scripts/configure -- -DBUILD_TESTING=ON
cmake --build ./build --target package
sudo cmake --install ./build
- name: Run ctest
run: |
ctest --test-dir ./build --verbose
- name: Run installed tests
run: |
/opt/snapshot/snapshot_tests
- name: Run test tarball
run: |
tar -xvf ./build/snapshot-*.tar.gz -C /tmp
/tmp/snapshot-*/snapshot_tests