https://github.com/ranjithdb/gh-actions-java-01
CLI tool to check HTTP status code for given URL build and tested with maven
https://github.com/ranjithdb/gh-actions-java-01
github-actions java maven
Last synced: 28 days ago
JSON representation
CLI tool to check HTTP status code for given URL build and tested with maven
- Host: GitHub
- URL: https://github.com/ranjithdb/gh-actions-java-01
- Owner: ranjithdb
- Created: 2025-03-01T13:14:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-01T14:05:40.000Z (over 1 year ago)
- Last Synced: 2025-07-18T21:20:40.412Z (11 months ago)
- Topics: github-actions, java, maven
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gh-actions-java-01
## HTTP Status Code Checker with GitHub actions
A simple Java-based command-line tool to check HTTP status code for given URL build and tested with maven.
## ๐ Features
- Sends HTTP requests to a URL
- Displays the status code of the response
## ๐ Prerequisites
Before you begin, ensure you have the following installed:
- Java 17.0.14
- Apache Maven 3.8.7
## ๐ง Installation
Build the project:
```sh
mvn package
```
## ๐ Usage
Run the JAR file with URLs as arguments:
```sh
java -jar target/status-checker-1.0-SNAPSHOT.jar https://example.com
```
## ๐งช Running Tests
To run the test suite:
```sh
mvn test
```
## ๐ CI with GitHub Actions
This project uses GitHub Actions to:
- Automatically build and test on push
- Use specific versions of Java and Maven for consistency