Skip to content

Commit

Permalink
Running e2e without blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
ubiratansoares committed Sep 22, 2024
1 parent 5dd0444 commit 0fefd65
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,39 +43,31 @@ install_guardsquare_cli() {
}

execute_android_scan() {
local scan_id

if [[ -z "$extras" ]]; then
echo "Scanning standalone archive : $archive"
install_guardsquare_cli
scan_id=$("$guardsquare" scan "$archive" --commit-hash "$GITHUB_SHA" --format "{{.ID}}")
"$guardsquare" scan "$archive" --commit-hash "$GITHUB_SHA"
else
require_r8_or_proguard_mappings
echo "Scanning archive : $archive"
echo "R8/Proguard mappings : $extras"
install_guardsquare_cli
scan_id=$("$guardsquare" scan "$archive" --mapping-file "$extras" --commit-hash "$GITHUB_SHA" --format "{{.ID}}")
"$guardsquare" scan "$archive" --mapping-file "$extras" --commit-hash "$GITHUB_SHA"
fi

"$guardsquare" scan summary --wait-for static "$scan_id" --format json | jq
}

execute_ios_scan() {
local scan_id

if [[ -z "$extras" ]]; then
echo "Scanning standalone archive : $archive"
install_guardsquare_cli
scan_id=$("$guardsquare" scan "$archive" --commit-hash "$GITHUB_SHA" --format "{{.ID}}")
"$guardsquare" scan "$archive" --commit-hash "$GITHUB_SHA"
else
require_dsyms_folder
echo "Scanning archive : $archive"
echo "dsyms location : $extras"
echo "dsyms location : $extras"
install_guardsquare_cli
scan_id=$("$guardsquare" scan "$archive" --dsym "$extras" --commit-hash "$GITHUB_SHA" --format "{{.ID}}")
"$guardsquare" scan "$archive" --dsym "$extras" --commit-hash "$GITHUB_SHA"
fi

"$guardsquare" scan summary --wait-for static "$scan_id" --format json | jq
}

require_archive
Expand Down

0 comments on commit 0fefd65

Please sign in to comment.