An open API service indexing awesome lists of open source software.

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

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