Skip to content

Commit 2b74513

Browse files
authored
Merge pull request #1101 from nextcloud/backport/1097/stable21
2 parents ec1dea8 + 63a5e94 commit 2b74513

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/cypress.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,20 @@ jobs:
3434
cd cypress
3535
docker-compose up -d
3636
37-
- name: Set up node
37+
- name: Read package.json node and npm engines version
38+
uses: skjnldsv/[email protected]
39+
id: versions
40+
with:
41+
fallbackNode: '^12'
42+
fallbackNpm: '^6'
43+
44+
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
3845
uses: actions/setup-node@v2
3946
with:
40-
node-version: 14
47+
node-version: ${{ steps.versions.outputs.nodeVersion }}
4148

42-
- name: Set up npm7
43-
run: npm i -g npm@7
49+
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
50+
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
4451

4552
- name: Install dependencies & build app
4653
run: |

0 commit comments

Comments
 (0)