Skip to content

Bump actions/checkout from 3 to 4 #9

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #9

Workflow file for this run

name: Code Analysis
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
permissions:
contents: read
env:
DEBIAN_FRONTEND: noninteractive
TZ: Europe/Oslo
jobs:
code_analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential \
cmake libyaml-dev cppcheck clang-tidy
- name: Run CMake
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DSCONF_ENABLE_CLANG_TIDY=on \
-DSCONF_ENABLE_CPPCHECK=on -Werror=dev
- name: Build code
run: cmake --build build
- name: Run Clang-Tidy
run: cmake --build build --target check-clang-tidy
- name: Run Cppcheck
run: cmake --build build --target check-cppcheck