1 parent 3bdd865 commit a2fdceeCopy full SHA for a2fdcee
1 file changed
.github/workflows/cicd.yml
@@ -1,18 +1,35 @@
1
+name: CI/CD Pipeline
2
+
3
on:
4
push:
5
branches:
6
- main
7
-steps:
- - uses: actions/checkout@v4
8
- - name: Set up JDK 11 for x64
9
- uses: actions/setup-java@v4
10
- with:
11
- java-version: '11'
12
- distribution: 'temurin'
13
- architecture: x64
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Code
14
+ uses: actions/checkout@v3
15
-
16
+ - name: Set up JDK 17
17
+ uses: actions/setup-java@v3
18
+ with:
19
+ java-version: '17'
20
+ distribution: 'temurin'
21
22
+ - name: Install Dependencies
23
+ run: |
24
+ chmod +x mvnw
25
+ ./mvnw clean install
26
27
+ - name: Run Tests
28
+ run: ./mvnw test
29
30
+ deploy:
31
+ needs: build
32
33
34
+ - name: Deploy Application
35
+ run: echo "Deploying application..."
0 commit comments