blob: 6cccb5f72170a056c9bc9f577cd2980ebd972e97 (
plain) (
blame)
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
62
63
|
# SPDX-FileCopyrightText: 2020 Jeremy Lainé <jeremy.laine@m4x.org>
#
# SPDX-License-Identifier: CC0-1.0
name: tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
env:
CONFIG: ${{ matrix.config }}
QT_VERSION: ${{ matrix.qt_version }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
config: [minimal, full, full-debug]
qt_version: ['5.15.*']
include:
- os: ubuntu-latest
config: full
qt_version: 5.9.*
- os: ubuntu-latest
config: minimal
qt_version: 6.0.*
- os: ubuntu-latest
config: minimal
qt_version: 6.*.*
- os: macos-latest
config: minimal
qt_version: 6.*.*
steps:
- uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
setup-python: false
- name: Install extra packages
run: tests/travis/install-build-depends
- name: Disable OS X firewall
if: matrix.os == 'macos-latest'
run: |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: Run tests
run: tests/travis/build-and-test
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
xmllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt update && sudo apt install -y libxml2-utils
- run: xmllint --noout $(find . -type f -name *.xml)
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
|