Skip to content

Commit e7a33b0

Browse files
committed
Create Tox environments for all React versions
1 parent 17c8d1b commit e7a33b0

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
node-version: [ 16.x, 18.x, 20.x ]
17+
react-version: [ rc15, rc16, rc17, rc18 ]
1718

1819
steps:
1920
- name: Checkout
@@ -37,4 +38,4 @@ jobs:
3738
run: npm install
3839

3940
- name: Run Tox Jest
40-
run: tox -e main
41+
run: tox -e ${{ matrix.react-version }}

tox.ini

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
11
[tox]
22
envlist =
3-
main
3+
rc15
4+
rc16
5+
rc17
6+
rc18
47

5-
[testenv:main]
8+
[testenv:rc15]
69
allowlist_externals = npm
710
commands =
811
npm install
12+
npm install -D @types/[email protected]
13+
npm test
14+
15+
[testenv:rc16]
16+
allowlist_externals = npm
17+
commands =
18+
npm install
19+
npm install -D @types/[email protected]
20+
npm test
21+
22+
[testenv:rc17]
23+
allowlist_externals = npm
24+
commands =
25+
npm install
26+
npm install -D @types/[email protected]
27+
npm test
28+
29+
[testenv:rc18]
30+
allowlist_externals = npm
31+
commands =
32+
npm install
33+
npm install -D @types/[email protected]
934
npm test

0 commit comments

Comments
 (0)