-
Notifications
You must be signed in to change notification settings - Fork 22
Fix test CI issue by calling self test action #217
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 20 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8ea62b9
Checkout pull request HEAD commit
shenxianpeng ef088eb
Update run-test.yml
shenxianpeng 0b0d864
Update run-test.yml
shenxianpeng 4338b6c
updaste run-test.yml
shenxianpeng a256283
change pull_request_target to pull_request
shenxianpeng 254ad6a
change git tag command
shenxianpeng b4b14f7
change pull_request_target to pull_request
shenxianpeng f1369cf
delete tag before create
shenxianpeng f4f82c0
change git tag commands
shenxianpeng d6d704c
cancel previours build when trigger a new build
shenxianpeng 7ff0afe
update step name
shenxianpeng 1c6837a
update concurrency group
shenxianpeng f18b74d
don't arbitrarily ignore errors
2bndy5 b6b9bb3
Update run-test.yml
shenxianpeng aaa1ce7
support workflow_dispatch event
shenxianpeng 44e53dc
add a self test action
shenxianpeng 7150575
Update self-test.yml
shenxianpeng e2fca40
remove run-test.yml
shenxianpeng cec7e82
ignore venv folder
shenxianpeng b0ebdb0
add step-summary to test
shenxianpeng 8bccee6
Update .github/workflows/self-test.yml
shenxianpeng 2574f63
Update .github/workflows/self-test.yml
shenxianpeng 52ba5b9
Update .github/workflows/self-test.yml
shenxianpeng 6d50cb2
Update .github/workflows/self-test.yml
shenxianpeng 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 was deleted.
Oops, something went wrong.
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,59 @@ | ||
name: Self test action | ||
|
||
on: | ||
push: | ||
branches: main | ||
paths-ignore: "docs/**" | ||
pull_request: | ||
branches: main | ||
paths-ignore: "docs/**" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
clang-version: ['9','10', '11', '12', '13', '14', '15', '16', '17', '18'] | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache the build artifacts | ||
id: cache-build | ||
uses: actions/cache@v4 | ||
with: | ||
path: build | ||
key: ${{ runner.os }}-${{ hashFiles('docs/examples/demo/CMakeLists.txt', 'docs/examples/demo/demo.cpp', 'docs/examples/demo/demo.hpp') }} | ||
|
||
- name: Generate compilation database | ||
if: steps.cache-build.outputs.cache-hit != 'true' | ||
run: mkdir build && cmake -Bbuild docs/examples/demo | ||
|
||
- name: Self test action | ||
uses: ./ | ||
id: linter | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
style: file | ||
files-changed-only: false | ||
# to ignore all build folder contents | ||
ignore: build|venv | ||
database: build | ||
verbosity: 9 | ||
shenxianpeng marked this conversation as resolved.
Show resolved
Hide resolved
|
||
version: ${{ matrix.clang-version }} | ||
thread-comments: ${{ matrix.clang-version == '12' }} | ||
shenxianpeng marked this conversation as resolved.
Show resolved
Hide resolved
|
||
file-annotations: ${{ matrix.clang-version == '12' }} | ||
shenxianpeng marked this conversation as resolved.
Show resolved
Hide resolved
|
||
step-summary: ${{ matrix.clang-version == '12' }} | ||
extra-args: -std=c++14 -Wall | ||
|
||
- name: Fail fast?! | ||
# if: steps.linter.outputs.checks-failed > 0 | ||
run: | | ||
echo "some linter checks failed" | ||
echo "${{ steps.linter.outputs.checks-failed }}" | ||
echo "${{ env.checks-failed }}" | ||
# for actual deployment | ||
# run: exit 1 |
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,12 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
|
||
# Set the project name to your project name | ||
project(demo C CXX) | ||
|
||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
add_executable(demo_app | ||
${CMAKE_BINARY_SOURCE_DIR}demo.hpp | ||
${CMAKE_BINARY_SOURCE_DIR}demo.cpp | ||
) | ||
target_include_directories(demo_app PUBLIC ${CMAKE_BINARY_SOURCE_DIR}) |
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.