Unit testing and clang-tidy #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |