Skip to content

Commit 33b1052

Browse files
committed
test: add coverage on node lts versions 18, 20, 22, 24
1 parent 7f3e7ea commit 33b1052

File tree

1 file changed

+40
-13
lines changed

1 file changed

+40
-13
lines changed

.circleci/config.yml

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
version: 2.1
22

33
jobs:
4-
test:
4+
test-node-18:
55
docker:
6-
- image: cimg/node:20.0
6+
- image: cimg/node:18.0
77
environment:
88
INSTALL_JDK: 1
99
steps:
@@ -28,14 +28,40 @@ jobs:
2828
command: yarn add @authenio/samlify-xsd-schema-validator
2929
- run:
3030
name: Run tests
31-
command: yarn test --timeout=30s
31+
command: yarn test
32+
33+
test-node-20:
34+
docker:
35+
- image: cimg/node:20.0
36+
environment:
37+
INSTALL_JDK: 1
38+
steps:
39+
- checkout
40+
- run:
41+
name: Install Java JDK 20
42+
command: |
43+
sudo apt-get update
44+
sudo apt-get install -y wget lsb-release
45+
sudo mkdir -p /etc/apt/keyrings
46+
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee /etc/apt/keyrings/adoptium.asc
47+
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
48+
sudo apt-get update
49+
sudo apt-get install -y temurin-20-jdk
50+
java -version
51+
javac -version
52+
- run:
53+
name: Install dependencies
54+
command: yarn install --production=true
55+
- run:
56+
name: Install test dependencies
57+
command: yarn add @authenio/samlify-xsd-schema-validator
3258
- run:
33-
name: Generate coverage
34-
command: npm run coverage
59+
name: Run tests
60+
command: yarn test
3561

36-
test-node-16:
62+
test-node-22:
3763
docker:
38-
- image: cimg/node:16.0
64+
- image: cimg/node:22.0
3965
environment:
4066
INSTALL_JDK: 1
4167
steps:
@@ -60,11 +86,11 @@ jobs:
6086
command: yarn add @authenio/samlify-xsd-schema-validator
6187
- run:
6288
name: Run tests
63-
command: yarn test --timeout=30s
89+
command: yarn test
6490

65-
test-node-18:
91+
test-node-24:
6692
docker:
67-
- image: cimg/node:18.0
93+
- image: cimg/node:24.0
6894
environment:
6995
INSTALL_JDK: 1
7096
steps:
@@ -89,13 +115,14 @@ jobs:
89115
command: yarn add @authenio/samlify-xsd-schema-validator
90116
- run:
91117
name: Run tests
92-
command: yarn test --timeout=30s
118+
command: yarn test
93119

94120
workflows:
95121
version: 2
96122
test:
97123
jobs:
98-
- test-node-16
99124
- test-node-18
100-
- test
125+
- test-node-20
126+
- test-node-22
127+
- test-node-24
101128

0 commit comments

Comments
 (0)