Skip to content

Merge pull request #72 from andrsd/cmake-code-cov #212

Merge pull request #72 from andrsd/cmake-code-cov

Merge pull request #72 from andrsd/cmake-code-cov #212

Workflow file for this run

name: qa
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check-formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clang-format style check
uses: jidicula/[email protected]
with:
clang-format-version: '14'
check-path: .
exclude-regex: './contrib/'
analyze:
name: analyze
defaults:
run:
shell: bash -el {0}
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.9
auto-update-conda: false
channels: andrsd,defaults
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
conda install \
cmake \
make \
mpich-mpicxx \
exodusii==2022.08.01 \
fmt==9.1.0 \
yaml-cpp==0.8.0
- name: Configure
run: |
cmake -S . -B ${{ github.workspace }}/build \
-DEXODUSIICPP_BUILD_TESTS=YES
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build
run: make -C ${{ github.workspace }}/build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
check-spdx-tags:
name: check spdx tags
defaults:
run:
shell: bash -el {0}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: kt3k/[email protected]