Skip to content

Commit 449bf35

Browse files
authored
chore: parameterize Node.js 22 in .node-version file (#23)
1 parent 1dc6caa commit 449bf35

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Node.js
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: 22
27+
node-version-file: .node-version
2828
- name: Cypress test
2929
uses: cypress-io/github-action@v6
3030
with:

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
This repo contains completed versions of the quickstart apps from the component
44
testing quickstart guides at [https://docs.cypress.io/guides/component-testing/getting-started](https://docs.cypress.io/guides/component-testing/getting-started)
55

6+
Use the recommended version of [Node.js](https://nodejs.org/en/) as shown by the file [.node-version](./.node-version) contents. [node-version-usage](https://github.com/shadowspawn/node-version-usage) contains a list of Node.js version managers that read and use the contents of a [.node-version](./.node-version) file to install and use the specified version.
7+
68
Visit [docs.cypress.io](https://docs.cypress.io) for more information on
79
component testing with Cypress.

0 commit comments

Comments
 (0)