Skip to content

Feature/clang tidy (#10) #13

Feature/clang tidy (#10)

Feature/clang tidy (#10) #13

Workflow file for this run

name: test
on:
pull_request:
paths:
- include/**
- internal/**
- src/**
- tests/**
- CMakeLists.txt
push:
paths:
- include/**
- internal/**
- src/**
- tests/**
- CMakeLists.txt
jobs:
test:
runs-on: ubuntu-22.04
container: ghcr.io/lesomnus/dev-gcc:12
steps:
- uses: actions/checkout@v3
- name: Configure
run: |
cmake \
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake \
-DCMAKE_BUILD_TYPE:STRING=Debug \
-S . \
-B ./build \
-G Ninja
- name: Build
run: |
cmake \
--build ./build \
--config Debug \
--target test-all
- name: Test
run: |
cmake \
--build ./build \
--config Debug \
--target coverage
- uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
api-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: ./build/coverage.info