Skip to content

Commit a2fdcee

Browse files
authored
Update cicd.yml
1 parent 3bdd865 commit a2fdcee

1 file changed

Lines changed: 26 additions & 9 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
1+
name: CI/CD Pipeline
2+
13
on:
24
push:
35
branches:
46
- main
57

6-
steps:
7-
- 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
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v3
1415

15-
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
1621

22+
- name: Install Dependencies
23+
run: |
24+
chmod +x mvnw
25+
./mvnw clean install
1726
27+
- name: Run Tests
28+
run: ./mvnw test
1829

30+
deploy:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Deploy Application
35+
run: echo "Deploying application..."

0 commit comments

Comments
 (0)