Skip to content

test on windows as well #27

test on windows as well

test on windows as well #27

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Denis Danilov
# SPDX-License-Identifier: GPL-3.0-only
name: Coverage
on: [push, pull_request]
permissions:
contents: write
defaults:
run:
shell: bash
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: build dependencies
run: |
sudo apt-get -qq update
sudo apt-get install --assume-yes gcovr
sudo apt-get install --assume-yes gstreamer1.0-plugins-good
sudo apt-get install --assume-yes libgl-dev
sudo apt-get install --assume-yes pulseaudio
sudo apt-get install --assume-yes qt6-base-dev
sudo apt-get install --assume-yes qt6-l10n-tools
sudo apt-get install --assume-yes qt6-multimedia-dev
sudo apt-get install --assume-yes qt6-tools-dev
sudo apt-get install --assume-yes qt6-tools-dev-tools
sudo apt-get install --assume-yes xvfb
- name: configure
run: |
BUILD_DIR=$HOME/build
echo "BUILD_DIR=$BUILD_DIR" >>$GITHUB_ENV
cmake -DWITH_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug -B $BUILD_DIR
- name: build
run: |
cmake --build $BUILD_DIR --target all
- name: test
run: |
systemctl --user start pulseaudio
xvfb-run ctest --output-on-failure --test-dir $BUILD_DIR/tests --repeat until-pass:5
cmake --build $BUILD_DIR --target coveralls
- name: coveralls
uses: coverallsapp/github-action@v2
with:
file: ${{ env.BUILD_DIR }}/coverage.json