diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e5a0748..5487545 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 22 + node-version-file: .node-version - name: Cypress test uses: cypress-io/github-action@v6 with: diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..2bd5a0a --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22 diff --git a/readme.md b/readme.md index 9b51f69..5d3d758 100644 --- a/readme.md +++ b/readme.md @@ -3,5 +3,7 @@ This repo contains completed versions of the quickstart apps from the component testing quickstart guides at [https://docs.cypress.io/guides/component-testing/getting-started](https://docs.cypress.io/guides/component-testing/getting-started) +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. + Visit [docs.cypress.io](https://docs.cypress.io) for more information on component testing with Cypress.