-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Handle case where visibility is prefixed by P or M when in miles.
- Fix deployment actions to include tag.
- Loading branch information
Showing
5 changed files
with
47 additions
and
5 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 |
---|---|---|
|
@@ -23,10 +23,6 @@ jobs: | |
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | ||
gpg-passphrase: GPG_PASSPHRASE | ||
|
||
- name: Retrieve the new version | ||
id: get-version | ||
uses: JActions/[email protected] | ||
|
||
- name: Publish to Apache Maven Central | ||
run: mvn clean -DskipTests deploy --settings .settings.xml -P release,ossrh | ||
env: | ||
|
@@ -60,6 +56,7 @@ jobs: | |
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: ${{ steps.get-version.outputs.version }} | ||
prerelease: false | ||
files: | | ||
*.jar |
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
21 changes: 21 additions & 0 deletions
21
.../src/test/java/io/github/mivek/command/common/MainVisibilityNauticalMilesCommandTest.java
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,21 @@ | ||
package io.github.mivek.command.common; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
/** | ||
* @author Jean-Kevin KPADEY | ||
*/ | ||
class MainVisibilityNauticalMilesCommandTest { | ||
|
||
@Test | ||
void testCanParse() { | ||
MainVisibilityNauticalMilesCommand command = new MainVisibilityNauticalMilesCommand(); | ||
assertTrue(command.canParse("P6SM")); | ||
assertTrue(command.canParse("M6SM")); | ||
assertTrue(command.canParse("1 1/2SM")); | ||
assertTrue(command.canParse("3/4SM")); | ||
assertTrue(command.canParse("M6SM")); | ||
} | ||
} |
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