From 7b2c64d4168c87d7763fd6a279a41f3d373157db Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Mon, 6 May 2024 19:27:46 +1000 Subject: [PATCH 1/2] Added SSH action. --- .github/workflows/test-php.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 9ba83fa..2e78ab7 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -21,6 +21,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Setup upterm session + uses: lhotari/action-upterm@v1 + - name: Cache Composer dependencies uses: actions/cache@v4 with: From 27229bb4ad8bfd368928144fa659d0d7b1cfbc42 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Mon, 6 May 2024 19:45:12 +1000 Subject: [PATCH 2/2] t1 --- .github/workflows/test-php.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 2e78ab7..bf15baf 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -8,6 +8,12 @@ on: branches: - main - 'feature/**' + workflow_dispatch: + inputs: + enable_upterm: + description: 'Enable upterm session' + required: true + default: 'true' jobs: test-php: @@ -21,9 +27,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup upterm session - uses: lhotari/action-upterm@v1 - - name: Cache Composer dependencies uses: actions/cache@v4 with: @@ -65,6 +68,12 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Setup upterm session + if: ${{ !cancelled() && github.event.inputs.enable_upterm == 'true' }} + uses: lhotari/action-upterm@v1 + with: + wait-timeout-minutes: 5 + # yamllint disable-line #;< PHP_PHAR build-php: runs-on: ubuntu-latest