@@ -49,6 +49,31 @@ running Cypress tests. This action provides npm installation, custom caching,
4949additional configuration options and simplifies setup of advanced workflows with
5050Cypress in the GitHub Actions platform.
5151
52+ ### Explicit Version Number
53+
54+ <Alert type =" info " >
55+
56+ <strong class =" alert-header " >GitHub Action Version Number</strong >
57+
58+ We recommend using the explicit version number of the Cypress GitHub Action to
59+ prevent accidentally running tests with a new version of the action that may
60+ have breaking changes.
61+
62+ Read the
63+ [ GitHub Action documentation] ( https://github.com/cypress-io/github-action#explicit-version )
64+ for more information
65+
66+ </Alert >
67+
68+ For Example:
69+
70+ ``` yaml
71+ jobs :
72+ cypress-run :
73+ steps :
74+ uses :
cypress-io/[email protected] 75+ ` ` `
76+
5277## Basic Setup
5378
5479<DocsVideo src="https://youtube.com/embed/vVr7DXDdUks"></DocsVideo>
7297 # Install NPM dependencies, cache them correctly
7398 # and run all Cypress tests
7499 - name: Cypress run
75- uses : cypress-io/github-action@v4
100+ uses: cypress-io/github-action@v4.x.x # use the explicit version number
76101 with:
77102 build: npm run build
78103 start: npm start
@@ -131,7 +156,7 @@ jobs:
131156 # Install NPM dependencies, cache them correctly
132157 # and run all Cypress tests
133158 - name: Cypress run
134- uses: cypress-io/github-action@v4
159+ uses: cypress-io/github-action@v4.x.x # use the explicit version number
135160 with:
136161 # Specify Browser since container image is compile with Firefox
137162 browser: firefox
@@ -178,7 +203,7 @@ jobs:
178203 path: build
179204
180205 - name: Cypress install
181- uses: cypress-io/github-action@v4
206+ uses: cypress-io/github-action@v4.x.x # use the explicit version number
182207 with:
183208 # Disable running of tests within install job
184209 runTests: false
@@ -214,7 +239,7 @@ jobs:
214239 # Install NPM dependencies, cache them correctly
215240 # and run all Cypress tests
216241 - name: Cypress run
217- uses: cypress-io/github-action@v4
242+ uses: cypress-io/github-action@v4.x.x # use the explicit version number
218243 with:
219244 # Specify Browser since container image is compile with Firefox
220245 browser: firefox
@@ -275,7 +300,7 @@ jobs:
275300 uses: actions/checkout@v2
276301
277302 - name: Cypress install
278- uses: cypress-io/github-action@v4
303+ uses: cypress-io/github-action@v4.x.x # use the explicit version number
279304 with:
280305 # Disable running of tests within install job
281306 runTests: false
@@ -338,7 +363,7 @@ jobs:
338363 path: build
339364
340365 - name: 'UI Tests - Chrome'
341- uses: cypress-io/github-action@v4
366+ uses: cypress-io/github-action@v4.x.x # use the explicit version number
342367 with:
343368 # we have already installed all dependencies above
344369 install: false
@@ -474,7 +499,7 @@ jobs:
474499 uses: actions/checkout@v2
475500
476501 - name: Cypress run
477- uses: cypress-io/github-action@v4
502+ uses: cypress-io/github-action@v4.x.x # use the explicit version number
478503 with:
479504 record: true
480505 env:
@@ -501,7 +526,7 @@ jobs:
501526 uses: actions/checkout@v2
502527
503528 - name: Cypress run
504- uses: cypress-io/github-action@v4
529+ uses: cypress-io/github-action@v4.x.x # use the explicit version number
505530 with:
506531 record: true
507532 env:
0 commit comments