Skip to content

Commit

Permalink
integration test improvements
Browse files Browse the repository at this point in the history
- integration test now can be activated by workflow_dispatch
- use 7z to compress the 2 files before uploading them as artifact
  • Loading branch information
maxisoft committed Aug 8, 2024
1 parent acc54fe commit b1f1a6a
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Integration Test

on:
on:
push:
branches:
- main
- dev
schedule:
- cron: '55 22 */3 * *'

workflow_dispatch:

env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
Expand All @@ -21,7 +23,7 @@ jobs:
integration:
concurrency:
group: integration
if: github.actor == github.repository_owner
if: ${{ github.actor == github.repository_owner }}
strategy:
max-parallel: 1 # only 1 else asf may crash due to parallel login using the same config file
matrix:
Expand Down Expand Up @@ -75,7 +77,7 @@ jobs:
- name: run docker
shell: python
timeout-minutes: 60
run: |
run: |
import subprocess
import sys
Expand Down Expand Up @@ -109,13 +111,26 @@ jobs:
sys.exit(exit_code)
sys.exit(111)
- name: Upload stdout
- name: compress artifact files
continue-on-error: true
if: always()
run: |
mkdir -p tmp_7z
openssl rand -base64 32 | tr -d '\r\n' > tmp_7z/archive_pass.txt
echo ::add-mask::$(cat archive_pass.txt)
if [[ -z "${{ secrets.SEVENZIP_PASSWORD }}" ]]; then
export SEVENZIP_PASSWORD="$(cat archive_pass.txt)"
echo "**One must set SEVENZIP_PASSWORD seceret**" >> $GITHUB_STEP_SUMMARY
echo "- output.7z created with a random password good luck guessing ..." >> $GITHUB_STEP_SUMMARY
fi
7z a -t7z -m0=lzma2 -mx=9 -mhe=on -ms=on -p"${{ secrets.SEVENZIP_PASSWORD || env.SEVENZIP_PASSWORD }}" tmp_7z/output.7z config.zip out.txt
- name: Upload 7z artifact
continue-on-error: true
if: always()
uses: actions/[email protected]
with:
name: ${{ matrix.configuration }}_${{ matrix.asf_docker_tag }}_stdout
path: out.txt
path: tmp_7z/output.7z


0 comments on commit b1f1a6a

Please sign in to comment.