From d06b65ff852747e091aace5c2c6b2bb69de1944a Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Fri, 2 Dec 2022 12:51:22 +0400 Subject: [PATCH] fix(actions): errors in mobile cypress action (#48612) * action: update flutter version in action * action: update cypress action version to v4 * fix: mobile cypress test file location --- .github/workflows/e2e-mobile.yml | 11 +++++------ .../mobile-learn/test-challenges.js | 0 2 files changed, 5 insertions(+), 6 deletions(-) rename cypress/{integration => e2e}/mobile-learn/test-challenges.js (100%) diff --git a/.github/workflows/e2e-mobile.yml b/.github/workflows/e2e-mobile.yml index a4c714abf78..8e911c44f55 100644 --- a/.github/workflows/e2e-mobile.yml +++ b/.github/workflows/e2e-mobile.yml @@ -30,13 +30,13 @@ jobs: with: node-version: 16.x - - name: Setup Flutter 3.0.x + - name: Setup Flutter 3.3.x uses: subosito/flutter-action@dbf1fa04f4d2e52c33185153d06cdb5443aa189d # tag=v2 with: - flutter-version: '3.0.x' + flutter-version: '3.3.x' channel: 'stable' cache: true - cache-key: flutter-3.0.x + cache-key: flutter-3.3.x cache-path: ${{ runner.tool_cache }}/flutter - name: Set freeCodeCamp Environment Variables @@ -57,7 +57,7 @@ jobs: flutter test test/widget_test.dart - name: Cypress run - uses: cypress-io/github-action@v2 + uses: cypress-io/github-action@v4 with: record: ${{ env.CYPRESS_RECORD_KEY != 0 }} start: npx serve @@ -65,8 +65,7 @@ jobs: wait-on-timeout: 1200 config: retries=1,screenshotOnRunFailure=false,video=false,baseUrl=http://localhost:3000/mobile/mobile-app/generated-tests/ browser: chrome - - spec: cypress/integration/mobile-learn/test-challenges.js + spec: cypress/e2e/mobile-learn/test-challenges.js env: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/cypress/integration/mobile-learn/test-challenges.js b/cypress/e2e/mobile-learn/test-challenges.js similarity index 100% rename from cypress/integration/mobile-learn/test-challenges.js rename to cypress/e2e/mobile-learn/test-challenges.js