Skip to content

Commit 12c687f

Browse files
authored
test55 (#9)
* Add new function * asd * asd * asd * asd * asd * asd * asd * asd * asd * asd * print total comments * aaaaaaaaaaaaaA * aaaaaaaaAA * xd
1 parent 98e6616 commit 12c687f

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/build.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ jobs:
3838
cmake \
3939
-DCMAKE_EXPORT_COMPILE_COMMANDS=On \
4040
..
41-
make -j$(nproc)
41+
make "-j$(nproc)"
4242
shell: bash
4343

4444
- name: clang-tidy review
4545
uses: pajlada/clang-tidy-review@feat/split-up-review-and-post-workflows
4646
if: github.event_name == 'pull_request'
47+
id: review
4748
with:
4849
include: src/main.cpp
4950
build_dir: build
@@ -56,3 +57,9 @@ jobs:
5657
path: |
5758
clang-tidy-review-output.json
5859
clang-tidy-review-metadata.json
60+
61+
- name: Get total comments
62+
run: |
63+
echo "Total comments: ${total_comments}"
64+
env:
65+
total_comments: ${{ steps.review.outputs.total_comments }}

.github/workflows/post_comments.yml

+7
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,10 @@ jobs:
3636
run: unzip clang-tidy-review.zip
3737

3838
- uses: pajlada/clang-tidy-review/post_comments@feat/split-up-review-and-post-workflows
39+
id: review
40+
41+
- name: Get total comments
42+
run: |
43+
echo "Total comments: ${total_comments}"
44+
env:
45+
total_comments: ${{ steps.review.outputs.total_comments }}

src/main.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include <iostream>
22

3+
void myFunction()
4+
{
5+
}
6+
37
int main(int argc, char **argv)
48
{
59
auto test = new std::string; // :)

0 commit comments

Comments
 (0)