Skip to content

Commit

Permalink
test55 (#9)
Browse files Browse the repository at this point in the history
* Add new function

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* print total comments

* aaaaaaaaaaaaaA

* aaaaaaaaAA

* xd
  • Loading branch information
pajlada authored Aug 20, 2022
1 parent 98e6616 commit 12c687f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ jobs:
cmake \
-DCMAKE_EXPORT_COMPILE_COMMANDS=On \
..
make -j$(nproc)
make "-j$(nproc)"
shell: bash

- name: clang-tidy review
uses: pajlada/clang-tidy-review@feat/split-up-review-and-post-workflows
if: github.event_name == 'pull_request'
id: review
with:
include: src/main.cpp
build_dir: build
Expand All @@ -56,3 +57,9 @@ jobs:
path: |
clang-tidy-review-output.json
clang-tidy-review-metadata.json
- name: Get total comments
run: |
echo "Total comments: ${total_comments}"
env:
total_comments: ${{ steps.review.outputs.total_comments }}
7 changes: 7 additions & 0 deletions .github/workflows/post_comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ jobs:
run: unzip clang-tidy-review.zip

- uses: pajlada/clang-tidy-review/post_comments@feat/split-up-review-and-post-workflows
id: review

- name: Get total comments
run: |
echo "Total comments: ${total_comments}"
env:
total_comments: ${{ steps.review.outputs.total_comments }}
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include <iostream>

void myFunction()
{
}

int main(int argc, char **argv)
{
auto test = new std::string; // :)
Expand Down

0 comments on commit 12c687f

Please sign in to comment.