From 9bd7ffdc3fed1b71640309872f8a6a6275bb9fe4 Mon Sep 17 00:00:00 2001 From: Owen Rees Date: Sat, 24 Jun 2023 19:51:18 +0200 Subject: [PATCH] Delete cypress.yml --- .github/workflows/cypress.yml | 46 ----------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/cypress.yml diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml deleted file mode 100644 index 218c98b..0000000 --- a/.github/workflows/cypress.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Cypress Tests -on: [push] -jobs: - cypress-run: - runs-on: ubuntu-latest - # Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization - # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs - # Also see warning here https://github.com/cypress-io/github-action#parallel - strategy: - fail-fast: false # https://github.com/cypress-io/github-action/issues/48 - matrix: - containers: [1, 2] # Uses 2 parallel instances - steps: - - name: Checkout - uses: actions/checkout@v3 - - # Add a conditional step to check if the affected path is /api/v1/tournaments/france - - name: Check Affected Path - id: check-path - run: | - affectedPath=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | grep "/api/v1/tournaments/france") - echo "::set-output name=affected::${{ steps.check-path.outputs.affectedPath }}" - - - name: Cypress run - # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action - uses: cypress-io/github-action@v4 - with: - # Starts web server for E2E tests - replace with your own server invocation - # https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server - browser: chrome - build: npm run build - start: npm start - wait-on: 'http://localhost:3000' # Waits for above - # Records to Cypress Cloud - # https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record - record: true - parallel: true # Runs test in parallel using settings above - env: - # For recording and parallelization to work you must set your CYPRESS_RECORD_KEY - # in GitHub repo → Settings → Secrets → Actions - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - # Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # Add a conditional expression to skip Cypress run if the affected path is /api/v1/tournaments/france - if: steps.check-path.outputs.affectedPath != '/api/v1/tournaments/france'