Skip to content

Commit

Permalink
Add engines support for cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored and backportbot[bot] committed Dec 16, 2021
1 parent bae4d6b commit 25321a3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,20 @@ jobs:
cd cypress
docker-compose up -d
- name: Set up node
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@v1.1
id: versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@v2
with:
node-version: 14
node-version: ${{ steps.versions.outputs.nodeVersion }}

- name: Set up npm7
run: npm i -g npm@7
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Install dependencies & build app
run: |
Expand Down

0 comments on commit 25321a3

Please sign in to comment.