File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI/CD Pipeline Demo
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ name : Build Stage
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+
17+ - name : Simulate Build Step
18+ run : echo "Building the HTML project..."
19+
20+ test :
21+ runs-on : ubuntu-latest
22+ name : Test Stage
23+ needs : build
24+
25+ steps :
26+ - name : Checkout code
27+ uses : actions/checkout@v3
28+
29+ - name : Simulate HTML Validation
30+ run : echo "Running HTML/CSS/JS validation..."
31+
32+ deploy :
33+ runs-on : ubuntu-latest
34+ name : Deploy Stage
35+ needs : test
36+
37+ steps :
38+ - name : Checkout code
39+ uses : actions/checkout@v3
40+
41+ - name : Simulate Deployment
42+ run : echo "Deploying the website (simulated for now)..."
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < title > CI/CD Demo</ title >
5+ < link rel ="stylesheet " href ="style.css ">
6+ </ head >
7+ < body >
8+ < h1 > CI/CD Pipeline Test</ h1 >
9+ < button onclick ="trigger() "> Click Me</ button >
10+ < script src ="script.js "> </ script >
11+ </ body >
12+ </ html >
Original file line number Diff line number Diff line change 1+ body {
2+ font-family : Arial, sans-serif;
3+ background-color : # fafafa ;
4+ text-align : center;
5+ padding : 50px ;
6+ }
7+
8+ button {
9+ padding : 10px 20px ;
10+ font-size : 16px ;
11+ background-color : # 0078D7 ;
12+ color : white;
13+ border : none;
14+ border-radius : 5px ;
15+ }
You can’t perform that action at this time.
0 commit comments