mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-05 21:03:24 -05:00
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
This commit is contained in:
11
.github/workflows/e2e-mobile.yml
vendored
11
.github/workflows/e2e-mobile.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user