forked from boost-ext/sml
-
Notifications
You must be signed in to change notification settings - Fork 0
Add quality gates workflow and local gate script #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
295b31f
Add CI quality gates workflow and local quality gate script
gabewillen eb70504
Resolve quality gate review feedback
gabewillen 78aaa47
Fix format gate style and scope to avoid unrelated CI failures
gabewillen 3fe515e
Fix quality gate failures: format count, no-exceptions, benchmarks
gabewillen 9e9ada8
Fix __has_feature usage when unavailable
gabewillen b093b0a
Merge remote-tracking branch 'origin/main' into pr/quality-gates
gabewillen d74e555
Merge remote main and resolve remaining conflicts
gabewillen c2d4dde
Fix CI format failure in exceptions test
gabewillen d182291
Fix sanitizer feature detection for non-clang
gabewillen 7b69ecf
Align pointer style for clang-format compatibility
gabewillen 0b24464
Specify reference alignment for clang-format
gabewillen 3921b1d
Silence clang-format mismatch in exceptions test
gabewillen d171a38
Fix shell arithmetic in quality gate tidy counter
gabewillen 4b839c7
Fix clang coverage tool resolution in strict mode
gabewillen 612ee6c
Install lcov in quality gates workflow
gabewillen 23e9284
Use clang gcov tool wrapper for coverage
gabewillen efec3bf
Keep gcov wrapper outside coverage build dir
gabewillen 6b1586d
Install Boost headers in quality gates workflow
gabewillen 484c2fe
Throttle benchmark build parallelism in quality gates
gabewillen cdc11c7
Smoke build selected benchmark targets in quality gate
gabewillen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| --- | ||
| Language: Cpp | ||
| Standard: Cpp11 | ||
| PointerAlignment: Left | ||
| ReferenceAlignment: Left | ||
| BasedOnStyle: Google | ||
| ColumnLimit: 128 | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,5 @@ | ||
| --- | ||
| Checks: 'clang-diagnostic-*,clang-analyzer-*,-clang-analyzer-alpha*,*,-clang-analyzer-core.UndefinedBinaryOperatorResult,-clang-analyzer-core.uninitialized.UndefReturn,-readability*,-misc-noexcept-move-constructor,-google-readability*,-google-build-using-namespace,-llvm-namespace-comment' | ||
| HeaderFilterRegex: msm | ||
| AnalyzeTemporaryDtors: false | ||
| Checks: '-*,clang-analyzer-*,-clang-analyzer-security.ArrayBound,-clang-analyzer-cplusplus.Move' | ||
| HeaderFilterRegex: "" | ||
| User: git | ||
| CheckOptions: | ||
| - key: google-readability-braces-around-statements.ShortStatementLines | ||
| value: '1' | ||
| - key: google-readability-function-size.StatementThreshold | ||
| value: '800' | ||
| - key: google-readability-namespace-comments.ShortNamespaceLines | ||
| value: '10' | ||
| - key: google-readability-namespace-comments.SpacesBeforeComments | ||
| value: '2' | ||
| - key: misc-assert-side-effect.AssertMacros | ||
| value: assert | ||
| - key: misc-assert-side-effect.CheckFunctionCalls | ||
| value: '0' | ||
| ... | ||
|
|
||
| CheckOptions: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: quality_gates | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| quality_gates: | ||
| name: Quality gates | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| CXX: clang++ | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
gabewillen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| clang \ | ||
| clang-format \ | ||
| clang-tidy \ | ||
| llvm \ | ||
| cmake \ | ||
| libboost-dev \ | ||
| gcovr \ | ||
| lcov \ | ||
| ninja-build \ | ||
| python3 | ||
|
|
||
| - name: Run quality gates | ||
gabewillen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| run: | | ||
| ./scripts/quality_gates.sh | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,5 @@ | |
| *.out | ||
| .vs | ||
| .vscode | ||
| .quality_gates/ | ||
| *.gcov | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.