Skip to content

Commit

Permalink
- zips generation results to accelerate workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Aug 23, 2023
1 parent e970bad commit d2b8282
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
if: always()
with:
name: generation-results-${{ matrix.language }}-${{ steps.replace_url.outputs.ARTKEY }}
path: it/${{ matrix.language }}
path: it/${{ matrix.language }}.zip

idempotency:
runs-on: ubuntu-latest
Expand Down
9 changes: 7 additions & 2 deletions it/do-clean.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ if ([string]::IsNullOrEmpty($language)) {
exit 1
}

$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
$testPath = Join-Path -Path $scriptPath -ChildPath $language
$testPath = Join-Path -Path $PSScriptRoot -ChildPath $language

Push-Location $testPath
if ($language -eq "csharp") {
Expand All @@ -30,3 +29,9 @@ elseif ($language -eq "php") {
Remove-Item composer.lock -ErrorAction SilentlyContinue
}
Pop-Location

$archiveLocation = Join-Path -Path $PSScriptRoot -ChildPath "$language.zip"
if (Test-Path $archiveLocation) {
Remove-Item $archiveLocation -Force -ErrorAction SilentlyContinue -Verbose
}
Compress-Archive -Path $testPath -DestinationPath $archiveLocation -Verbose

0 comments on commit d2b8282

Please sign in to comment.