Add nightly builds (#1013)

Partially fixes #884.
Adds:
- Docker image for CI on Linux
- Nightly builds without cache and releases
- Nightly clang-tidy checks
- Fix typos in .clang-tidy
This commit is contained in:
Sergey Kuznetsov
2023-12-08 18:22:22 +00:00
committed by GitHub
parent b886586de3
commit a34e107b86
16 changed files with 594 additions and 125 deletions

View File

@@ -24,6 +24,8 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <stdexcept>
namespace util::prometheus {
template <SomeNumberType NumberType>
@@ -213,6 +215,9 @@ struct WithMockPrometheus : virtual ::testing::Test {
return mockPrometheusPtr->histogramDoubleImpls[key];
}
ASSERT(false, "Wrong metric type for metric {} {}", name, labelsString);
// to fix -Werror=return-type for gcc 14.1 in Debug mode
throw std::runtime_error("Wrong metric type");
}
};