Skip to content

Commit

Permalink
Merge pull request #49 from andrsd/gha
Browse files Browse the repository at this point in the history
gha: updating qa workflow
  • Loading branch information
andrsd authored Feb 9, 2024
2 parents 8cf58e5 + 6b2136e commit 408feca
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,18 @@ on:
- main

jobs:
cpp-linter:
name: c++ linter
check-formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt install libfmt-dev libnetcdf-dev libhdf5-dev libexodusii-dev libyaml-cpp-dev
- name: Configure
run: |
cmake -S . -B ${{ github.workspace }}/build \
-DEXODUSIICPP_BUILD_TESTS=YES \
-DCMAKE_EXPORT_COMPILE_COMMANDS=on
- uses: cpp-linter/cpp-linter-action@v2
id: linter
with:
style: file
version: 14
lines-changed-only: true
ignore: 'contrib'
step-summary: true
database: build

- name: Result
if: steps.linter.outputs.checks-failed > 0
run: exit 1
- uses: actions/checkout@v3

- name: Clang-format style check
uses: jidicula/[email protected]
with:
clang-format-version: '14'
check-path: .
exclude-regex: './contrib/'

analyze:
name: analyze
Expand Down

0 comments on commit 408feca

Please sign in to comment.