Skip to content

Commit 7f3e7ea

Browse files
committed
fix: circle test build
1 parent d35a6f3 commit 7f3e7ea

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed

.circleci/config.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
version: 2.1
2+
3+
jobs:
4+
test:
5+
docker:
6+
- image: cimg/node:20.0
7+
environment:
8+
INSTALL_JDK: 1
9+
steps:
10+
- checkout
11+
- run:
12+
name: Install Java JDK 20
13+
command: |
14+
sudo apt-get update
15+
sudo apt-get install -y wget lsb-release
16+
sudo mkdir -p /etc/apt/keyrings
17+
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee /etc/apt/keyrings/adoptium.asc
18+
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
19+
sudo apt-get update
20+
sudo apt-get install -y temurin-20-jdk
21+
java -version
22+
javac -version
23+
- run:
24+
name: Install dependencies
25+
command: yarn install --production=true
26+
- run:
27+
name: Install test dependencies
28+
command: yarn add @authenio/samlify-xsd-schema-validator
29+
- run:
30+
name: Run tests
31+
command: yarn test --timeout=30s
32+
- run:
33+
name: Generate coverage
34+
command: npm run coverage
35+
36+
test-node-16:
37+
docker:
38+
- image: cimg/node:16.0
39+
environment:
40+
INSTALL_JDK: 1
41+
steps:
42+
- checkout
43+
- run:
44+
name: Install Java JDK 20
45+
command: |
46+
sudo apt-get update
47+
sudo apt-get install -y wget lsb-release
48+
sudo mkdir -p /etc/apt/keyrings
49+
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee /etc/apt/keyrings/adoptium.asc
50+
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
51+
sudo apt-get update
52+
sudo apt-get install -y temurin-20-jdk
53+
java -version
54+
javac -version
55+
- run:
56+
name: Install dependencies
57+
command: yarn install --production=true
58+
- run:
59+
name: Install test dependencies
60+
command: yarn add @authenio/samlify-xsd-schema-validator
61+
- run:
62+
name: Run tests
63+
command: yarn test --timeout=30s
64+
65+
test-node-18:
66+
docker:
67+
- image: cimg/node:18.0
68+
environment:
69+
INSTALL_JDK: 1
70+
steps:
71+
- checkout
72+
- run:
73+
name: Install Java JDK 20
74+
command: |
75+
sudo apt-get update
76+
sudo apt-get install -y wget lsb-release
77+
sudo mkdir -p /etc/apt/keyrings
78+
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee /etc/apt/keyrings/adoptium.asc
79+
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
80+
sudo apt-get update
81+
sudo apt-get install -y temurin-20-jdk
82+
java -version
83+
javac -version
84+
- run:
85+
name: Install dependencies
86+
command: yarn install --production=true
87+
- run:
88+
name: Install test dependencies
89+
command: yarn add @authenio/samlify-xsd-schema-validator
90+
- run:
91+
name: Run tests
92+
command: yarn test --timeout=30s
93+
94+
workflows:
95+
version: 2
96+
test:
97+
jobs:
98+
- test-node-16
99+
- test-node-18
100+
- test
101+

0 commit comments

Comments
 (0)