diff --git a/.github/workflows/run-e2e-gke-prod-1.yml b/.github/workflows/run-e2e-gke-prod-1.yml deleted file mode 100644 index 3e3de1a..0000000 --- a/.github/workflows/run-e2e-gke-prod-1.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: run-e2e-gke-prod-1 -run-name: GKE-PROD-1 - Migration validation - Cypress e2e tests on -on: - workflow_dispatch: -concurrency: - group: ${{ github.workflow }}-platform-test - cancel-in-progress: true -jobs: - cypress-run: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: e2e-on-prod - # Launch NucliaDB in docker - - run: | - docker network create nucliadb-network - docker run -it -d --name pg --network nucliadb-network \ - -p 5432:5432 \ - -e POSTGRES_USER=nucliadb \ - -e POSTGRES_PASSWORD=nucliadb \ - -e POSTGRES_DB=nucliadb \ - postgres:latest - docker pull nuclia/nucliadb:latest - docker build -t nucliadb-server . - docker run --network nucliadb-network \ - -p 8080:8080 \ - -v nucliadb-standalone:/data \ - -e NUA_API_KEY=${{ secrets.NUA_KEY_PROD_EUROPE }} \ - -e DRIVER=PG \ - -e DRIVER_PG_URL="postgresql://nucliadb:nucliadb@pg:5432/nucliadb" \ - nucliadb-server & - # Install npm dependencies, cache them correctly and run all Cypress tests - - name: Hack host file for gke-stage-1 test - run: | - echo "34.8.131.105 europe-1.nuclia.cloud." | sudo tee -a /etc/hosts > /dev/null - - - name: Cypress run - id: cypress - uses: cypress-io/github-action@v6 - with: - install-command: yarn install - env: - CYPRESS_BASE_URL: https://nuclia.cloud - CYPRESS_BEARER_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN_PROD }} - CYPRESS_NUA_KEY_EUROPE: ${{ secrets.NUA_KEY_PROD_EUROPE }} - CYPRESS_NUA_KEY_USA: ${{ secrets.NUA_KEY_PROD_USA }} - CYPRESS_USER_NAME: ${{ secrets.USER_NAME_PROD }} - CYPRESS_USER_PWD: ${{ secrets.USER_PWD_PROD }} - CYPRESS_RUNNING_ENV: prod - # after the test run completes store reports and any screenshots - - name: Cypress reports - id: report - uses: actions/upload-artifact@v4 - if: ${{ failure() && steps.cypress.conclusion == 'failure' }} - with: - name: cypress-reports - path: cypress/reports - if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` - - name: Slack notification - id: slack - uses: slackapi/slack-github-action@v1.25.0 - if: ${{ failure() && steps.cypress.conclusion == 'failure' }} - with: - payload: | - { - "text": "‼️️Cypress E2E failed on PROD ‼️\nRun #${{ github.run_number }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\nCypress report: ${{ steps.report.outputs.artifact-url }}" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_HOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK