diff --git a/.github/scripts/verifyExecutable.sh b/.github/scripts/verifyExecutable.sh index f63c08a..6ffa535 100755 --- a/.github/scripts/verifyExecutable.sh +++ b/.github/scripts/verifyExecutable.sh @@ -4,7 +4,7 @@ set -e ./target/https-intercept > intercept.log 2>&1 & interceptPID="$!" -sleep 3 +sleep 4 curl_result="$(curl --connect-to example.com:1337:127.0.0.1 https://example.com:1337 --cacert root.pem -i)" kill "$interceptPID" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cf717ce..c0ca650 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,9 +16,13 @@ jobs: - name: Build image run: mvn -Pnative package - name: verify executable + id: verify run: | ./certs.sh ./.github/scripts/verifyExecutable.sh + - name: check log if error + if: ${{ failure() && steps.verify.conclusion == 'failure' }} + run: cat intercept.log - uses: actions/upload-artifact@v4 with: path: target/https-intercept