From 4d301748b4eda72e2e6cb3b4fc081de1d1042c79 Mon Sep 17 00:00:00 2001 From: Abdulrhmn Ghanem Date: Thu, 16 Feb 2023 02:59:37 +0200 Subject: [PATCH] CI: disable cypresss All tests depends on importing repos, we have disabled importing repos from the UI. We have to write a command to import the repos without the UI and re-enable the tests because it would be a bit dangerous to go live without tests. --- .github/workflows/docker.yml | 71 ------------------------------------ 1 file changed, 71 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4cae910c30..af52cb560c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -277,77 +277,6 @@ jobs: SENTRY_ORG: kitspace SENTRY_PROJECT: nginx - test: - name: Test E2E - runs-on: ubuntu-20.04 - needs: - - get_version - - build - strategy: - fail-fast: false - matrix: ${{ fromJson(needs.get_version.outputs.matrix) }} - steps: - - name: Setup Node 14 - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Check out the repo - uses: actions/checkout@v2 - with: - # check out the pull-request when triggered by "pull_request_target", - # when triggered on "push" this is empty and checks out the branch - # pushed to - ref: ${{ github.event.pull_request.head.sha }} - submodules: 'recursive' - - - name: Set environment variables - uses: c-py/action-dotenv-to-setenv@v2 - with: - env-file: .env.example - - - name: Configure /etc/hosts - shell: bash - run: cat ./config/hosts | sudo tee -a /etc/hosts - - - name: Install Gitea - shell: bash - timeout-minutes: 5 - env: - FRONTEND_DEPLOY_IMAGE_TAG: ':${{ needs.get_version.outputs.frontend_sha_short }}' - PROCESSOR_DEPLOY_IMAGE_TAG: ':${{ needs.get_version.outputs.processor_sha_short }}' - NGINX_DEPLOY_IMAGE_TAG: ':${{ needs.get_version.outputs.nginx_sha_short }}' - GITEA_DEPLOY_IMAGE_TAG: ':${{ needs.get_version.outputs.gitea_sha_short }}' - run: | - scripts/install_gitea.sh - - - name: Pre e2e - shell: bash - run: scripts/pre_e2e.sh - - - name: e2e - timeout-minutes: 40 - env: - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - # pass GitHub token to allow accurately detecting a build vs a re-run build - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - FRONTEND_DEPLOY_IMAGE_TAG: ':${{ needs.get_version.outputs.frontend_sha_short }}' - PROCESSOR_DEPLOY_IMAGE_TAG: ':${{ needs.get_version.outputs.processor_sha_short }}' - NGINX_DEPLOY_IMAGE_TAG: ':${{ needs.get_version.outputs.nginx_sha_short }}' - GITEA_DEPLOY_IMAGE_TAG: ':${{ needs.get_version.outputs.gitea_sha_short }}' - browser: ${{ matrix.browser }} - group: ${{ matrix.browser }} - BUILD_ID: '${{ github.run_id }}-${{ github.run_attempt }}' - COMMIT_INFO_MESSAGE: '${{ github.event.head_commit.message }}' - COMMIT_INFO_EMAIL: '${{ github.event.head_commit.author.email }}' - COMMIT_INFO_AUTHOR: '${{ github.event.head_commit.author.name }}' - COMMIT_INFO_SHA: '${{ github.event.head_commit.id }}' - COMMIT_INFO_TIMESTAMP: '${{ github.event.head_commit.timestamp }}' - COMMIT_INFO_BRANCH: '${{ github.ref_name || github.head_ref }}' - run: | - docker-compose -f docker-compose.yml -f docker-compose.deploy.yml -f docker-compose.e2e.yml up \ - --abort-on-container-exit --exit-code-from e2e - tag_docker_images: if: ${{ github.event_name == 'push' }} name: Tag with branch name