Repository navigation
feat: enable ci for windows and macos - #907
Conversation
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 2.x #907 +/- ##
============================================
- Coverage 97.87% 95.19% -2.68%
- Complexity 3020 3129 +109
============================================
Files 284 310 +26
Lines 7425 8404 +979
Branches 475 618 +143
============================================
+ Hits 7267 8000 +733
- Misses 157 350 +193
- Partials 1 54 +53
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Yury-Fridlyand
left a comment
There was a problem hiding this comment.
You can use a matrix build to run a workflow on few OS.
https://devblogs.microsoft.com/premier-developer/github-actions-overview/#matrix-builds
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
| os: [ubuntu-latest, windows-latest, macos-latest] | ||
| include: | ||
| - os: windows-latest | ||
| os_build_args: -x doctest -x integTest -x jacocoTestReport -x compileJdbc |
There was a problem hiding this comment.
Disabled doctest/integTest for now, created an issue to enable them in the future
#921
|
|
||
| - name: Build with Gradle | ||
| run: ./gradlew --continue build assemble | ||
| run: ./gradlew --continue build ${{ env.BUILD_ARGS }} |
There was a problem hiding this comment.
Is assemble unnecessary here? It seems build includes assemble:
https://stackoverflow.com/a/44185464
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
| void htmlEscaping_should_disabled() { | ||
| assertEquals( | ||
| "{\n" + " \"request\": \"index=test\"\n" + "}", | ||
| format("{\n" + " \"request\": \"index=test\"\n" + "}"), |
There was a problem hiding this comment.
Should be there %n too?
There was a problem hiding this comment.
Good catch I reverted this file. As per @joshuali925's suggestion, I will not be doing replaceAll in ErrorFormatter, as this could affect user entered input. Reverted this file to initial state, as I am no longer doing anything in the ErrorFormatter itself.
Signed-off-by: Derek Ho <[email protected]>
Done: #921 |
|
@Yury-Fridlyand can you give it another review and remove the changes requested block if things look good? |
…s succeeds Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
|
Why ubuntu CI goes to download artifacts for macos? |
I'm not quite sure I didn't touch that section, but i'll check... |
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
|
@Yury-Fridlyand Fixed it, please review again, thanks! |
|
|
||
| - name: Build with Gradle | ||
| run: ./gradlew --continue build assemble | ||
| run: ./gradlew --continue build ${{ env.BUILD_ARGS }} |
There was a problem hiding this comment.
I think you can use there
| run: ./gradlew --continue build ${{ env.BUILD_ARGS }} | |
| run: ./gradlew --continue build ${{ matrix.entry.os_build_args }} |
There was a problem hiding this comment.
You're right this is cleaner let me do this
| assertEquals(format(expected), formatter.format(response)); | ||
| } | ||
|
|
||
| @Test |
There was a problem hiding this comment.
Do you need %n in this test as well?
There was a problem hiding this comment.
Yea, put a %n on line 88 in this file
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
fb50655 to
954c072
Compare
Signed-off-by: Derek Ho <[email protected]>
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-main main
# Navigate to the new working tree
cd .worktrees/backport-main
# Create a new branch
git switch --create backport/backport-907-to-main
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0699baa2ae47fb72af9721986df669e786655cd2
# Push it to GitHub
git push --set-upstream origin backport/backport-907-to-main
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-mainThen, create a pull request where the |
…s-macos feat: enable ci for windows and macos (cherry picked from commit 0699baa)
…s-macos feat: enable ci for windows and macos (cherry picked from commit 0699baa) Signed-off-by: Derek Ho <[email protected]>
…nch (#962) * Merge pull request #907 from derek-ho/enable-windows-macos feat: enable ci for windows and macos (cherry picked from commit 0699baa) Signed-off-by: Derek Ho <[email protected]> * always and os==ubuntu Signed-off-by: Derek Ho <[email protected]> Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho [email protected]
Description
[Describe what this change achieves]
Issues Resolved
#249 #250
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.