From fdf73d2787721292e695bdb3c078ce5ce39a6072 Mon Sep 17 00:00:00 2001 From: gh-man <42840513+mmpetarpeshev@users.noreply.github.com> Date: Thu, 23 May 2024 10:59:04 +0300 Subject: [PATCH] ci: move e2e in the testnet pipeline (#803) Co-authored-by: petarpeshev --- .github/workflows/ci-e2e.yml | 20 -------------------- .github/workflows/stg-pipeline-testnet.yml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/ci-e2e.yml diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml deleted file mode 100644 index f97cd400b..000000000 --- a/.github/workflows/ci-e2e.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: E2E Tests - -on: - workflow_run: - workflows: ["Pull Request Preview pipelines Testnet"] - types: [completed] - -env: - PR_NUMBER: ${{ github.event.pull_request.number }} - -jobs: - cypress-run: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Cypress run - uses: cypress-io/github-action@v6 - with: - config: baseUrl=https://pr-${{ env.PR_NUMBER }}-aescan-testnet.stg.service.aepps.com diff --git a/.github/workflows/stg-pipeline-testnet.yml b/.github/workflows/stg-pipeline-testnet.yml index 98c7f6ccf..20fc83896 100644 --- a/.github/workflows/stg-pipeline-testnet.yml +++ b/.github/workflows/stg-pipeline-testnet.yml @@ -144,3 +144,18 @@ jobs: repository: aeternity/gitops-apps-aelabs github_token: ${{ secrets.BOT_GITHUB_TOKEN }} branch: stg + + end-to-end-tests: + needs: main + runs-on: ubuntu-22.04 + name: Run E2E Tests + timeout-minutes: 10 + steps: + - name: Wait for 2 minutes + run: sleep 120 + - name: Checkout + uses: actions/checkout@v4 + - name: Cypress run + uses: cypress-io/github-action@v6 + with: + config: baseUrl=https://pr-${{ env.PR_NUMBER }}-aescan-testnet.stg.service.aepps.com