Skip to content

Commit

Permalink
CI: disable cypresss
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AbdulrhmnGhanem committed Feb 16, 2023
1 parent a13b484 commit b6b81b6
Showing 1 changed file with 0 additions and 71 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6b81b6

Please sign in to comment.