From 26d43f6252c80936b14341419199837723cc30fd Mon Sep 17 00:00:00 2001 From: dtor Date: Fri, 15 Nov 2024 12:38:20 +0000 Subject: [PATCH] test --- .github/workflows/check_pr_description.yml | 1 - .github/workflows/yamllint.yml | 2 +- examples/cpp/BUILD | 2 +- examples/cpp/hello.cpp | 4 +++- examples/cpp/hello.hpp | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check_pr_description.yml b/.github/workflows/check_pr_description.yml index a349448..c9344ef 100644 --- a/.github/workflows/check_pr_description.yml +++ b/.github/workflows/check_pr_description.yml @@ -1,4 +1,3 @@ -# yamllint disable rule:line-length --- name: PR description on: # yamllint disable-line rule:truthy diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index 9eb8eec..40c0429 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -22,7 +22,7 @@ jobs: pip install yamllint - name: Lint YAML files run: |- - if echo "${{ steps.changed_files.outputs.all }}" | grep -qE '\.(yml|yaml)$'; then + if echo "${{ steps.changed_files.outputs.all }}" | grep -oE '\.(yml|yaml)$'; then echo -e "Running yamllint" yamllint . || exit 1 else diff --git a/examples/cpp/BUILD b/examples/cpp/BUILD index 8cdddc9..1240e38 100644 --- a/examples/cpp/BUILD +++ b/examples/cpp/BUILD @@ -16,8 +16,8 @@ cc_test( name = "test", srcs = ["test.cpp"], deps = [ - ":lib", "@googletest//:gtest", "@googletest//:gtest_main", + ":lib", ], ) diff --git a/examples/cpp/hello.cpp b/examples/cpp/hello.cpp index cb52b41..76370c0 100644 --- a/examples/cpp/hello.cpp +++ b/examples/cpp/hello.cpp @@ -2,6 +2,8 @@ #include -auto greet() -> std::string { return "Hello World!"; } +std::string greet( ){ + return "Hello World!"; +} auto farewell() -> std::string { return "Bye World!"; } diff --git a/examples/cpp/hello.hpp b/examples/cpp/hello.hpp index bf1e2e7..166a203 100644 --- a/examples/cpp/hello.hpp +++ b/examples/cpp/hello.hpp @@ -1,4 +1,4 @@ #include -auto greet() -> std::string; +std::string greet(); auto farewell() -> std::string;