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 : Java CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up JDK
20+ uses : actions/setup-java@v4
21+ with :
22+ java-version : ' 24'
23+ distribution : ' temurin'
24+
25+ - name : Cache Gradle dependencies
26+ uses : actions/cache@v3
27+ with :
28+ path : ~/.gradle/caches
29+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
30+ restore-keys : |
31+ ${{ runner.os }}-gradle-
32+
33+ - name : Install dependencies and build
34+ run : make build
35+
36+ - name : Run tests
37+ run : make test
Original file line number Diff line number Diff line change 1+ This project is a simple "Hello World" application built with Java and Spring Boot.
2+
3+ ## Prerequisites
4+
5+ - Java 24 or higher
6+ - Gradle 8.4 or higher
7+
8+ ## Getting Started
9+
10+ 1 . Clone the repository:
11+ ``` bash
12+ git clone https://github.com/your-repo/java-spring-boot-hello-world.git
13+ cd java-spring-boot-hello-world
14+ ```
15+
16+ 2 . Build the project using the Makefile:
17+ ``` bash
18+ make build
19+ ```
20+
21+ 3 . Run the application:
22+ ``` bash
23+ make run
24+ ```
25+
26+ 4 . Access the application:
27+ Open your browser and navigate to ` http://localhost:8080 ` .
You can’t perform that action at this time.
0 commit comments