From 91fd1f6a92f9b38bf580c563ffe938ca65bf4667 Mon Sep 17 00:00:00 2001 From: zMynx Date: Thu, 29 Feb 2024 13:16:33 +0200 Subject: [PATCH] fixed label --- .github/workflows/cd.yaml | 4 ++-- .github/workflows/ci.yaml | 4 ++-- .trunk/configs/.clang-tidy | 39 ++++++++++++++++++++++++++++++++++++++ .trunk/trunk.yaml | 1 + 4 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 .trunk/configs/.clang-tidy diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 2ad6c1b..8b5a756 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -50,7 +50,7 @@ jobs: platforms: linux/amd64 push: false load: true - tags: ${{ github.repository }}:${{ github.sha }} + tags: release:${{ github.sha }} cache-from: type=gha cache-to: type=gha,mode=max @@ -60,7 +60,7 @@ jobs: --interactive \ --rm \ --volume ./project-demo:/project \ - ${{ github.repository }}:${{ github.sha }} \ + release:${{ github.sha }} \ ceedling release - name: Semantic Versioning diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8cbdef3..37310bb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,7 +32,7 @@ jobs: platforms: linux/amd64 push: false load: true - tags: ${{ github.repository }}:${{ github.sha }} + tags: tests:${{ github.sha }} cache-from: type=gha cache-to: type=gha,mode=max @@ -42,5 +42,5 @@ jobs: --interactive \ --rm \ --volume ./project-demo:/project \ - ${{ github.repository }}:${{ github.sha }} \ + tests:${{ github.sha }} \ ceedling test:all diff --git a/.trunk/configs/.clang-tidy b/.trunk/configs/.clang-tidy new file mode 100644 index 0000000..e4bd819 --- /dev/null +++ b/.trunk/configs/.clang-tidy @@ -0,0 +1,39 @@ +Checks: >- + bugprone-*, + cppcoreguidelines-*, + google-*, + misc-*, + modernize-*, + performance-*, + readability-*, + -bugprone-lambda-function-name, + -bugprone-reserved-identifier, + -cppcoreguidelines-avoid-goto, + -cppcoreguidelines-avoid-magic-numbers, + -cppcoreguidelines-avoid-non-const-global-variables, + -cppcoreguidelines-pro-bounds-array-to-pointer-decay, + -cppcoreguidelines-pro-type-vararg, + -google-readability-braces-around-statements, + -google-readability-function-size, + -misc-no-recursion, + -modernize-return-braced-init-list, + -modernize-use-nodiscard, + -modernize-use-trailing-return-type, + -performance-unnecessary-value-param, + -readability-magic-numbers, + +CheckOptions: + - key: readability-function-cognitive-complexity.Threshold + value: 100 + - key: readability-function-cognitive-complexity.IgnoreMacros + value: true + # Set naming conventions for your style below (there are dozens of naming settings possible): + # See https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html + # - key: readability-identifier-naming.ClassCase + # value: CamelCase + # - key: readability-identifier-naming.NamespaceCase + # value: lower_case + # - key: readability-identifier-naming.PrivateMemberSuffix + # value: _ + # - key: readability-identifier-naming.StructCase + # value: CamelCase diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index 0ef0be8..e5fb1b1 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -17,6 +17,7 @@ runtimes: # This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) lint: enabled: + - clang-tidy@16.0.3 - checkov@3.2.24 - git-diff-check - markdownlint@0.39.0