Commit 4581de4 1 parent bd9dda3 commit 4581de4 Copy full SHA for 4581de4
File tree 3 files changed +32
-2
lines changed
3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 24
24
wait-on : ' http://localhost:3333'
25
25
config : baseUrl=http://localhost:3333
26
26
27
+ config-file :
28
+ # example where we use a custom config-file
29
+ runs-on : ubuntu-22.04
30
+ steps :
31
+ - name : Checkout
32
+ uses : actions/checkout@v4
33
+
34
+ - name : Cypress tests
35
+ uses : ./
36
+ with :
37
+ working-directory : examples/config
38
+ build : npm run build
39
+ start : npm start
40
+ wait-on : ' http://localhost:3333'
41
+ config-file : cypress.config-alternate.js
42
+
27
43
separate-specs :
28
44
# example where we pass specs to run via multiple lines
29
45
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ jobs:
547
547
548
548
# ## Config File
549
549
550
- Specify the path to your config file with `config-file` parameter
550
+ Specify the path to your [Configuration File](https://on.cypress.io/guides/references/configuration#Configuration-File) with `config-file` parameter
551
551
552
552
` ` ` yml
553
553
name: Cypress tests
@@ -563,9 +563,11 @@ jobs:
563
563
- name: Cypress run
564
564
uses: cypress-io/github-action@v6
565
565
with:
566
- config-file: tests/ cypress- config.json
566
+ config-file: cypress. config-alternate.js
567
567
` ` `
568
568
569
+ [](.github/workflows/example-config.yml)
570
+
569
571
# ## Parallel
570
572
571
573
**Note:** Cypress parallelization requires a [Cypress Cloud](https://on.cypress.io/cloud-introduction) account.
Original file line number Diff line number Diff line change
1
+ const { defineConfig } = require ( 'cypress' )
2
+
3
+ module . exports = defineConfig ( {
4
+ fixturesFolder : false ,
5
+ e2e : {
6
+ baseUrl : 'http://localhost:3333' ,
7
+ setupNodeEvents ( on , config ) {
8
+ console . log ( '\nUsing cypress.config-alternate.js config-file' )
9
+ } ,
10
+ supportFile : false
11
+ } ,
12
+ } )
You can’t perform that action at this time.
0 commit comments