aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/tests.yml
blob: 89a6d2bb4037f3ba27284386adbb37c927774d1f (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
name: tests

on: [push, pull_request]

jobs:

  test:
    runs-on: ${{ matrix.os }}
    env:
      CONFIG: ${{ matrix.config }}
    strategy:
      matrix:
        config: [minimal, full, full-debug]
        os: [ubuntu-latest, macos-latest]
    steps:
      - uses: actions/checkout@v2
      - name: Install Qt
        uses: jurplel/install-qt-action@v2
      - 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 }}