mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(actions,e2e): update spec formats (#49984)
This commit is contained in:
committed by
GitHub
parent
b5bcf16349
commit
ad842f7f0c
@@ -69,6 +69,17 @@ jobs:
|
||||
flutter pub get
|
||||
flutter test test/widget_test.dart
|
||||
|
||||
# This is a workaround for the fact that Cypress does not support
|
||||
# running in a sub-directory.
|
||||
#
|
||||
# In our cypress config, we default to the cypress/e2e/default directory.
|
||||
# We need to change this to cypress/e2e/ for the specific tests we are running
|
||||
# in this workflow.
|
||||
#
|
||||
- name: Adjust the Cypress Config for 3rd party donation tests
|
||||
run: |
|
||||
sed -i 's#cypress/e2e/default/#cypress/e2e/#g' cypress.config.js
|
||||
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v4
|
||||
with:
|
||||
|
||||
@@ -8,6 +8,8 @@ on:
|
||||
- 'prod-**'
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
# to test this ad-hoc
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
do-everything:
|
||||
@@ -66,6 +68,14 @@ jobs:
|
||||
- name: Move serve.json to Public Folder
|
||||
run: cp client-config/serve.json client/public/serve.json
|
||||
|
||||
# In our cypress config, we default to the cypress/e2e/default directory.
|
||||
# We need to change this to cypress/e2e/ for the specific tests we are running
|
||||
# in this workflow.
|
||||
#
|
||||
- name: Adjust the Cypress Config for 3rd party donation tests
|
||||
run: |
|
||||
sed -i 's#cypress/e2e/default/#cypress/e2e/#g' cypress.config.js
|
||||
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v4
|
||||
with:
|
||||
@@ -75,5 +85,4 @@ jobs:
|
||||
wait-on-timeout: 1200
|
||||
config: baseUrl=http://localhost:8000
|
||||
browser: chrome
|
||||
|
||||
spec: cypress/e2e/third-party/*.{js,ts}
|
||||
spec: 'cypress/e2e/third-party/donate-page.ts'
|
||||
|
||||
@@ -80,10 +80,7 @@ jobs:
|
||||
include:
|
||||
- browsers: electron
|
||||
spec: cypress/e2e/default/learn/challenges/projects.ts
|
||||
- browsers: chrome
|
||||
spec: cypress/e2e/default/**/*.{js,ts}
|
||||
# - browsers: firefox
|
||||
# spec: cypress/e2e/default/**/*.{js,ts}
|
||||
|
||||
services:
|
||||
mongodb:
|
||||
image: mongo:4.4
|
||||
@@ -147,5 +144,4 @@ jobs:
|
||||
wait-on-timeout: 1200
|
||||
config: baseUrl=http://localhost:8000
|
||||
browser: ${{ matrix.browsers }}
|
||||
|
||||
spec: ${{ matrix.spec }}
|
||||
|
||||
Reference in New Issue
Block a user