diff --git a/e2e/run_all_tests b/e2e/run_all_tests index f4f967168b..a4fcea8ae9 100755 --- a/e2e/run_all_tests +++ b/e2e/run_all_tests @@ -5,6 +5,13 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" FILES=$(find e2e -name 'test_*' -type f -not -path "*/.rtx/*" | sort) test_count=0 +if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then + { + echo "### E2E Test Tranche $TEST_TRANCHE/$TEST_TRANCHE_COUNT" + echo "| Test | Duration |" + echo "| ---- | -------- |" + } >> "$GITHUB_STEP_SUMMARY" +fi for f in $FILES; do # split tests into two tranches to reduce test time if [ -n "${TEST_TRANCHE_COUNT:-}" ]; then diff --git a/e2e/run_test b/e2e/run_test index c1e46487ac..c3fa230563 100755 --- a/e2e/run_test +++ b/e2e/run_test @@ -30,7 +30,7 @@ setup_config_files() { } run_test() { - echo "Running $TEST" + echo "::group::E2E $TEST" rm -f "$RTX_CONFIG_FILE" cd "$(dirname "$TEST")" @@ -39,6 +39,11 @@ run_test() { END=$(date +%s) echo "$TEST: $((END - START))s" + echo "::endgroup::" + if [[ -z "${GITHUB_STEP_SUMMARY:-}" ]]; then + return + fi + echo "| $TEST | $((END - START))s |" >> "$GITHUB_STEP_SUMMARY" } setup_env diff --git a/scripts/release.sh b/scripts/release.sh index 2c9cda0b33..79c787a5de 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -euxo pipefail +echo "::group::Setup" git config --global user.name rtx-vm git config --global user.email 123107610+rtx-vm@users.noreply.github.com @@ -10,7 +11,9 @@ RELEASE_DIR=releases export BASE_DIR RTX_VERSION RELEASE_DIR rm -rf "${RELEASE_DIR:?}/$RTX_VERSION" mkdir -p "$RELEASE_DIR/$RTX_VERSION" +echo "::endgroup::" +echo "::group::Build" find artifacts -name 'tarball-*' -exec sh -c ' target=${1#artifacts/tarball-} cp "artifacts/tarball-$target/"*.tar.gz "$RELEASE_DIR/$RTX_VERSION" @@ -36,7 +39,9 @@ for platform in "${platforms[@]}"; do cp -v rtx/bin/rtx "$RELEASE_DIR/rtx-latest-$platform" cp -v rtx/bin/rtx "$RELEASE_DIR/$RTX_VERSION/rtx-$RTX_VERSION-$platform" done +echo "::endgroup::" +echo "::group::Checksums" pushd "$RELEASE_DIR" echo "$RTX_VERSION" | tr -d 'v' >VERSION cp rtx-latest-linux-x64 rtx-latest-linux-amd64 @@ -53,20 +58,30 @@ sha512sum ./* >SHASUMS512.txt gpg --clearsign -u 408B88DB29DDE9E0 SHASUMS256.asc gpg --clearsign -u 408B88DB29DDE9E0 SHASUMS512.asc popd +echo "::endgroup::" +echo "::group::install.sh" ./rtx/scripts/render-install.sh >"$RELEASE_DIR"/install.sh chmod +x "$RELEASE_DIR"/install.sh shellcheck "$RELEASE_DIR"/install.sh gpg -u 408B88DB29DDE9E0 --output "$RELEASE_DIR"/install.sh.sig --sign "$RELEASE_DIR"/install.sh +echo "::endgroup::" if [[ "$DRY_RUN" != 1 ]]; then + echo "::group::Publish npm @jdxcode/rtx" NPM_PREFIX=@jdxcode/rtx ./rtx/scripts/release-npm.sh + echo "::endgroup::" + echo "::group::Publish npm rtx-cli" NPM_PREFIX=rtx-cli ./rtx/scripts/release-npm.sh - #AWS_S3_BUCKET=rtx.jdx.dev ./rtx/scripts/publish-s3.sh + echo "::endgroup::" + echo "::group::Publish r2" ./rtx/scripts/publish-r2.sh + echo "::endgroup::" fi +echo "::group::Publish homebrew" ./rtx/scripts/render-homebrew.sh >homebrew-tap/rtx.rb pushd homebrew-tap git add . && git commit -m "rtx ${RTX_VERSION#v}" popd +echo "::endgroup::"