-
Notifications
You must be signed in to change notification settings - Fork 4
Windows SSL #138
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
Windows SSL #138
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
e257657
Merge branch 'trunk' into 24-03/windows-ssl
Luc45 035b6a9
Set CA file if needed on Windows
Luc45 c8e3407
Build
Luc45 8e19f26
Use existing workflow to test temporarily
Luc45 4966430
Static code tests
Luc45 2c0bfca
Typo
Luc45 e41fff8
Windows syntax
Luc45 e98d9db
Install composer
Luc45 9f77db5
Tweak
Luc45 46cefef
Tweak
Luc45 9ec91dc
Tweak
Luc45 55c6119
Tweak
Luc45 e7b3a5a
Verbose
Luc45 a7f14a3
Debug
Luc45 c5f5796
Typo
Luc45 08457a2
Fix logic
Luc45 7cbbc0b
Also test with cache-hit
Luc45 40ce96a
Move worfklow to correct file
Luc45 b949c34
Fix name
Luc45 ae19598
Build
Luc45 4ef5644
Ask once
Luc45 77f3532
Tweaks to how/when we ask
Luc45 dd2f6c0
Test workflow
Luc45 66ffa96
Still using Cache from environment on trunk
Luc45 dec0abd
Static tests
Luc45 024dd2a
Undo changes to workflow
Luc45 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
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,78 @@ | ||
name: QIT Windows | ||
|
||
on: | ||
push: | ||
branches: | ||
- trunk | ||
# Manually | ||
workflow_dispatch: | ||
|
||
jobs: | ||
qit_windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
php: [ 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3 ] | ||
env: | ||
NO_COLOR: 1 | ||
QIT_DISABLE_ONBOARDING: yes | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: curl, zip | ||
coverage: none | ||
|
||
- name: Composer install | ||
working-directory: src | ||
run: composer install | ||
|
||
- name: Enable dev mode | ||
working-directory: src | ||
run: php qit-cli.php dev | ||
|
||
- name: Run SSL connection without CA file fallback Test | ||
working-directory: src | ||
env: | ||
OPENSSL_CONF: '' | ||
run: | | ||
php -d openssl.cafile='' -d curl.cainfo='' qit-cli.php sync -vvv | ||
if ($LASTEXITCODE -ne 0) { | ||
Write-Host "Test passed: SSL connection failed as expected" | ||
$LASTEXITCODE = 0 | ||
} else { | ||
Write-Host "Test failed: SSL connection did not fail as expected" | ||
exit 1 | ||
} | ||
|
||
- name: Run SSL connection with CA file fallback Test (Cache miss) | ||
working-directory: src | ||
env: | ||
QIT_WINDOWS_DOWNLOAD_CA: yes | ||
OPENSSL_CONF: '' | ||
run: | | ||
php -d openssl.cafile='' -d curl.cainfo='' qit-cli.php sync -vvv | ||
if ($LASTEXITCODE -eq 0) { | ||
Write-Host "Test passed: SSL connection succeeded" | ||
} else { | ||
Write-Host "Test failed: SSL connection did not succeed" | ||
exit 1 | ||
} | ||
|
||
- name: Run SSL connection with CA file fallback Test (Cache hit) | ||
working-directory: src | ||
env: | ||
QIT_WINDOWS_DOWNLOAD_CA: yes | ||
OPENSSL_CONF: '' | ||
run: | | ||
php -d openssl.cafile='' -d curl.cainfo='' qit-cli.php sync -vvv | ||
if ($LASTEXITCODE -eq 0) { | ||
Write-Host "Test passed: SSL connection succeeded" | ||
} else { | ||
Write-Host "Test failed: SSL connection did not succeed" | ||
exit 1 | ||
} |
Binary file not shown.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for adding in this test workflow!