Skip to content

Unit testing and clang-tidy #1

Unit testing and clang-tidy

Unit testing and clang-tidy #1

Workflow file for this run

name: "Unit Tests"
on:
workflow_dispatch:
push:
branches: [ "senpai", "kouhai" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "senpai", "kouhai" ]
jobs:
testing:
name: Testing
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Cache Qt dependencies
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/qt
key: qt-${{ runner.os }}-${{ hashFiles('**/install-qt-action/**') }}
- name: Install Qt
if: steps.cache.outputs.cache-hit != 'true'
uses: jurplel/[email protected]
with:
version: '6.6.2'
modules: 'qtwebsockets'
dir: ${{ github.workspace }}/qt
- name: Run unit tests
uses: HorstBaerbel/[email protected]
with:
sourcedir: 'tests'
builddir: 'build'
cmakeoptions: ''
ctestoptions: '--output-junit testResults.xml'