Skip to content

Small clean-up

Small clean-up #143

Workflow file for this run

---
name: ci
env:
CTEST_NO_TESTS_ACTION: error
HOMEBREW_NO_INSTALL_CLEANUP: 1
on:
push:
paths:
- '**.c'
- '**.cc'
- '**.cpp'
- '**.h'
- '**/CMakeLists.txt'
- '**.cmake'
- '**.json'
- '**.yaml'
- '**.yml'
- .github/linters/*
- .github/workflows/ci.yml
- Dockerfile
permissions: read-all
jobs:
build:
name: Build SDK
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Install extra packages
run: |
sudo apt-get update && \
sudo apt-get install -y \
autoconf \
autoconf-archive \
build-essential \
doxygen \
gcovr \
lcov \
xdg-utils
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
runVcpkgInstall: false
- name: Setup cmake
uses: lukka/get-cmake@latest
- name: Build
uses: lukka/run-cmake@v10
with:
configurePreset: ci
buildPreset: ninja
- name: Run Tests
run: build/tests/Debug/iggy_cpp_test
- name: Run Coverage
run: |
cd build
ninja coveralls
- name: Upload report to Coveralls
uses: coverallsapp/github-action@v2
with:
file: build/coveralls.json
measure: true
github-token: ${{ secrets.GITHUB_TOKEN }}
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0
- name: Super-linter
uses: super-linter/super-linter@v6.3.0
env:
DOCKERFILE_HADOLINT: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lizard Runner
uses: Uno-Takashi/Lizard-Runner@v3
with:
path: ./sdk
CCN: 15
- name: cppcheck
uses: deep5050/cppcheck-action@v3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
enable: style,warning,performance
inline_suppression: true
force_language: c++
std: c++20
- name: flawfinder
uses: david-a-wheeler/flawfinder@2.0.19
with:
arguments: --quiet -S -D --error-level=1 sdk tests