forked from eugene-manuilov/jest-runner-groups
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.21 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Tests
on:
- push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14.x
- 16.x
- 18.x
- 20.x
jest:
- ./jest/24
- ./jest/25
- ./jest/26
- ./jest/27
- ./jest/29
steps:
- uses: actions/checkout@v3
with:
clean: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Pack jest-runner-groups
run: npm pack
- name: Debug - List files after packing
run: ls -l
- name: Install test dependencies
working-directory: ${{ matrix.jest }}
run: npm i
- name: Add jest-runner-groups
working-directory: ${{ matrix.jest }}
run: npm i "../../jest-runner-groups-`cat ../../package.json | jq .version -r`.tgz"
- name: Debug - Output Jest configuration
working-directory: ${{ matrix.jest }}
run: npx jest --showConfig
- name: Run tests
working-directory: ${{ matrix.jest }}
run: |
node --version
npx jest --version
npm test