Update tests to use catch2 v3 split headers #18
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: "CodeQL Analysis" | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
workflow_dispatch: | |
jobs: | |
CodeqQL-Analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Install Open MPI | |
run: sudo apt-get install libopenmpi-dev | |
- name: Install json-c | |
run: sudo apt-get install libjson-c-dev | |
- name: Install Catch2 v3 from git repo | |
run: | | |
git clone https://github.com/catchorg/Catch2.git | |
cd Catch2 | |
cmake -B build -S . -DBUILD_TESTING=OFF | |
sudo cmake --build build/ --target install | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v3 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:${{matrix.language}}" | |