Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-11-09 10:51:55 +0300
committerJoas Schilling <coding@schilljs.com>2022-11-09 10:51:55 +0300
commit9b3ed0949b1e2525308d84f3e3d36a8503430643 (patch)
tree6e89d9a7fbf238b02c6038b50fb8a8f489b58d6c
parentba93631a25bf9e5bdf2e3506c2847c96f65185a7 (diff)
Run Jest with the same node/npm as specified
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--.github/workflows/jest.yml20
1 files changed, 14 insertions, 6 deletions
diff --git a/.github/workflows/jest.yml b/.github/workflows/jest.yml
index 65668aa16..6735857b4 100644
--- a/.github/workflows/jest.yml
+++ b/.github/workflows/jest.yml
@@ -21,17 +21,25 @@ jobs:
name: node
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- - name: Set up node
- uses: actions/setup-node@v2
+ - name: Read package.json node and npm engines version
+ uses: skjnldsv/read-package-engines-version-actions@v1.2
+ id: versions
with:
- node-version: 14
+ fallbackNode: '^12'
+ fallbackNpm: '^6'
- - name: Set up npm7
- run: npm i -g npm@7
+ - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ steps.versions.outputs.nodeVersion }}
+
+ - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
+ run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
- name: Install dependencies
run: npm ci
+
- name: Run jest
run: npm run test:coverage