-
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 (#21)
* Add GitHub Actions workflow to build and test Java project
- Loading branch information
Showing
7 changed files
with
52 additions
and
7 deletions.
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,37 @@ | ||
name: Java CI with Maven | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
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: | ||
distribution: 'adopt' | ||
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 -Dgpg.skip=true | ||
|
||
- 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`. |
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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* Allow for easy use of angles without messy conversions to and from degrees | ||
* and radians. | ||
* | ||
* @author Paul Picazo <[email protected]> | ||
* @author Paul Picazo <[email protected]> | ||
* | ||
*/ | ||
public class Angle { | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/** | ||
* Latitude. | ||
* | ||
* @author Paul Picazo <[email protected]> | ||
* @author Paul Picazo <[email protected]> | ||
* | ||
*/ | ||
public class Latitude extends Angle { | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* "Conversion Between Geodetic and Grid Locator Systems" by Edmund T. Tyson, | ||
* N5JTY in QST January 1989, pp. 29-30, 43 | ||
* | ||
* @author Paul Picazo <[email protected]> | ||
* @author Paul Picazo <[email protected]> | ||
* | ||
*/ | ||
public class Location { | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/** | ||
* Longitude. | ||
* | ||
* @author Paul Picazo <[email protected]> | ||
* @author Paul Picazo <[email protected]> | ||
* | ||
*/ | ||
public class Longitude extends Angle { | ||
|