Skip to content

Commit 2f39817

Browse files
committed
Chore: Added github cicd integration file
Signed-off-by: Achanandhi <[email protected]>
1 parent 39dc503 commit 2f39817

File tree

4 files changed

+4043
-1650
lines changed

4 files changed

+4043
-1650
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Java Keploy Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
keploy-java-tests:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
13+
- name: Checkout Repository
14+
uses: actions/[email protected]
15+
16+
- name: Set up Node.js environment
17+
uses: actions/[email protected]
18+
with:
19+
node-version: '20.9.0'
20+
21+
- name: Set up JDK
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: '21'
25+
distribution: 'zulu'
26+
27+
- name: Set up Maven
28+
uses: stCarolas/setup-maven@v5
29+
with:
30+
maven-version: '3.8.2'
31+
32+
- name: Build spring-petclinic-rest
33+
working-directory: spring-petclinic/spring-petclinic-rest
34+
run: mvn clean install -DskipTests
35+
36+
- name: Download and Install Keploy
37+
working-directory: spring-petclinic/spring-petclinic-rest
38+
run: |
39+
curl --silent --location "https://github.com/keploy/keploy/releases/latest/download/keploy_linux_amd64.tar.gz" | tar xz --overwrite -C /tmp
40+
sudo mkdir -p /usr/local/bin && sudo mv /tmp/keploy /usr/local/bin/keploy
41+
run: |
42+
sudo keploy test -c "java -jar target/spring-petclinic-rest-3.0.2.jar" -t test-set-0 --delay 60

spring-petclinic/keploy.yml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Generated by Keploy (0.11.22)
2+
path: ""
3+
appId: 0
4+
appName: spring-petclinic
5+
command: docker compose up
6+
templatize:
7+
testSets: []
8+
port: 0
9+
e2e: false
10+
dnsPort: 26789
11+
proxyPort: 16789
12+
debug: false
13+
disableTele: false
14+
disableANSI: false
15+
containerName: javaApp
16+
networkName: ""
17+
buildDelay: 30
18+
test:
19+
selectedTests: {}
20+
globalNoise:
21+
global: {}
22+
test-sets: {}
23+
delay: 5
24+
host: ""
25+
port: 0
26+
apiTimeout: 5
27+
skipCoverage: false
28+
coverageReportPath: ""
29+
ignoreOrdering: true
30+
mongoPassword: default@123
31+
language: ""
32+
removeUnusedMocks: false
33+
fallBackOnMiss: false
34+
jacocoAgentPath: ""
35+
basePath: ""
36+
mocking: true
37+
ignoredTests: {}
38+
disableLineCoverage: false
39+
disableMockUpload: false
40+
useLocalMock: false
41+
updateTemplate: false
42+
freezeTime: false
43+
record:
44+
filters: []
45+
basePath: ""
46+
recordTimer: 0s
47+
agent: false
48+
configPath: ""
49+
bypassRules: []
50+
generateGithubActions: false
51+
keployContainer: keploy-v2
52+
keployNetwork: keploy-network
53+
cmdType: native
54+
contract:
55+
services: []
56+
tests: []
57+
path: ""
58+
download: false
59+
generate: false
60+
driven: consumer
61+
mappings:
62+
servicesMapping: {}
63+
self: s1
64+
inCi: false
65+
autogen:
66+
filters: []
67+
basePath: ""
68+
recordTimer: 0s
69+
schemaPath: ""
70+
header: ""
71+
dedup:
72+
selectedTests: {}
73+
globalNoise:
74+
global: {}
75+
test-sets: {}
76+
delay: 0
77+
host: ""
78+
port: 0
79+
apiTimeout: 0
80+
skipCoverage: false
81+
coverageReportPath: ""
82+
ignoreOrdering: false
83+
mongoPassword: ""
84+
language: ""
85+
removeUnusedMocks: false
86+
fallBackOnMiss: false
87+
jacocoAgentPath: ""
88+
basePath: ""
89+
mocking: true
90+
ignoredTests: {}
91+
disableLineCoverage: false
92+
disableMockUpload: false
93+
useLocalMock: false
94+
updateTemplate: false
95+
rm: false
96+
freezeTime: false
97+
generateParallel:
98+
retryEnabled: false
99+
cores: 0
100+
utGen:
101+
llmBaseUrl: ""
102+
model: ""
103+
llmApiVersion: ""
104+
workflow:
105+
installationToken: ""
106+
coverageWorkflow: false
107+
prWorkflow: false
108+
repoName: ""
109+
prNumber: 0
110+
jwtToken: ""
111+
InstallationID: 0
112+
eventID: ""
113+
114+
# Visit [https://keploy.io/docs/running-keploy/configuration-file/] to learn about using keploy through configration file.

0 commit comments

Comments
 (0)