From c0ac01b3d6bf182d48042b16016ad5a7f595aa91 Mon Sep 17 00:00:00 2001 From: Edward Wall Date: Fri, 4 Jul 2025 11:33:18 +0200 Subject: [PATCH] Run linting commands --- .gitea/workflows/action.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml index 694a982..f7ef2bd 100644 --- a/.gitea/workflows/action.yaml +++ b/.gitea/workflows/action.yaml @@ -2,9 +2,15 @@ name: Example Action on: [push] jobs: - Example-Actions: + Lint: runs-on: linepics steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: cppcheck + run: cppcheck --std=c++17 --addon=cert --addon=misc --error-exitcode=1 src/*.cpp + - name: formatting + run: clang-format --style=file --Werror --dry-run src/*.cpp + Build: + runs-on: linepics + steps: + - run: | + ls -lsah