-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow to build and test Java project
--- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Smerty/jham?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Java CI with Maven | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Cache Maven packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Build with Maven | ||
run: mvn clean install | ||
|
||
- name: Run unit tests | ||
run: mvn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# jHam, Java Ham Radio Library | ||
[![Build Status](https://github.com/Smerty/jham/actions/workflows/maven.yml/badge.svg)](https://github.com/Smerty/jham/actions) | ||
|
||
Collection of utilities related to amateur radio. | ||
|
||
## Using with Maven | ||
<dependency> | ||
<groupId>org.smerty</groupId> | ||
<artifactId>jham</artifactId> | ||
<version>1.0</version> | ||
</dependency> | ||
</dependency> | ||
|
||
## Automated Build Process | ||
This project uses GitHub Actions for continuous integration. The build process is triggered on push and pull request events for the `main` branch. The workflow file is located at `.github/workflows/maven.yml`. |