Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/nightly-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
secrets:
token: ${{ secrets.ACCESS_TOKEN }}
IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }}
TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }}

Publish:
if: ${{ !cancelled() }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ jobs:
secrets:
token: ${{ secrets.ACCESS_TOKEN }}
IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }}
TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }}
2 changes: 1 addition & 1 deletion ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ graph TD

It performs the following steps:

1. Clone Examples Repo: Clone the "ip-intelligence-java-examples" repository into the common-ci directory.
1. Clone Examples Repo: Clone the "ip-intelligence-java-examples" repository into the common-ci directory. The branch with the same name as the one under test is used if it exists there, otherwise `main`.
3. Set up test files: Move the 51Degrees-EnterpriseIpiV41.ipi file to the ip-intelligence-java-examples/ip-intelligence-data directory and download Evidence files into ip-intelligence-data directory.
4. Enter ip-intelligence-examples directory: Changes the current working directory to the ip-intelligence-java-examples folder.
5. Set package dependency version: Sets the version of the ip-intelligence package dependency for the examples to the specified Version parameter. This will be the version installed in the local repository found in the .m2 folder.
Expand Down
6 changes: 6 additions & 0 deletions ci/run-integration-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ $RepoPath = [IO.Path]::Combine($pwd, $RepoName)
$mavenOpts = '--batch-mode', '--no-transfer-progress'

try {
# The branch under test usually has no twin in the examples repo
if (!(git ls-remote --heads "https://github.com/$OrgName/$ExamplesRepo" "refs/heads/$Branch")) {
Write-Output "No '$Branch' branch in '$ExamplesRepo', using 'main'"
$Branch = "main"
}

Write-Output "Cloning '$ExamplesRepo'"
./steps/clone-repo.ps1 -RepoName $ExamplesRepo -OrgName $OrgName -Branch $Branch
& "./$ExamplesRepo/ci/fetch-assets.ps1" -IpIntelligenceUrl $IpIntelligenceUrl
Expand Down
6 changes: 6 additions & 0 deletions ci/run-performance-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ if (!$IpIntelligenceUrl) {
if (Test-Path $ExamplesRepo) {
Write-Host "Examples already cloned, skipping"
} else {
# The branch under test usually has no twin in the examples repo
if (!(git ls-remote --heads "https://github.com/$OrgName/$ExamplesRepo" "refs/heads/$Branch")) {
Write-Host "No '$Branch' branch in '$ExamplesRepo', using 'main'"
$Branch = "main"
}

Write-Host "Cloning '$ExamplesRepo'"
./steps/clone-repo.ps1 -RepoName $ExamplesRepo -OrgName $OrgName -Branch $Branch
& "./$ExamplesRepo/ci/fetch-assets.ps1" -IpIntelligenceUrl $IpIntelligenceUrl
Expand Down
Loading