generated from JustArchiNET/ASF-PluginTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- integration test now can be activated by workflow_dispatch - use 7z to compress the 2 files before uploading them as artifact
- Loading branch information
Showing
1 changed file
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -75,7 +77,7 @@ jobs: | |
- name: run docker | ||
shell: python | ||
timeout-minutes: 60 | ||
run: | | ||
run: | | ||
import subprocess | ||
import sys | ||
|
@@ -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 | ||
|
||
|