generated from javalin/javalin-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b01a8b7
commit 39c7af9
Showing
2 changed files
with
11 additions
and
80 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 |
---|---|---|
|
@@ -11,8 +11,8 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
java_version: [11, 17, 18] # Test all LTS releases and the latest one | ||
os: [windows-latest, macOS-latest, ubuntu-latest] | ||
java_version: [11, 17, 21] # Test all LTS releases and the latest one | ||
os: [windows-latest, macOS-13, macOS-14, ubuntu-latest] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -28,41 +28,8 @@ jobs: | |
uses: gradle/[email protected] | ||
with: | ||
arguments: check | ||
coverage: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- test | ||
name: "📄 Codecov Report" | ||
strategy: | ||
matrix: | ||
test-type: [unit, integration] | ||
steps: | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Validate Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Setup and Run Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: ${{ matrix.test-type }}TestsCoverageReport | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
files: "${{ github.workspace }}/build/reports/jacoco/${{ matrix.test-type }}TestsCoverageReport/${{ matrix.test-type }}TestsCoverageReport.xml" | ||
flags: "${{ matrix.test-type }}Tests" | ||
verbose: true | ||
token: "${{ secrets.CODECOV_TOKEN }}" | ||
publish: | ||
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && github.repository == 'javalin/javalin-ssl' | ||
if: github.ref == 'refs/heads/5.x' && github.event_name != 'pull_request' && github.repository == 'javalin/javalin-ssl' | ||
needs: | ||
- test | ||
name: "🛫 Publish to maven repo" | ||
|
@@ -75,7 +42,7 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
java-version: '11' | ||
|
||
- name: Generate version | ||
uses: HardNorth/[email protected] | ||
|
@@ -110,48 +77,13 @@ jobs: | |
with: | ||
arguments: publishToSonatype closeAndReleaseStagingRepository | ||
|
||
- name: Create Pre-Release | ||
if: contains(env.CURRENT_VERSION, 'SNAPSHOT') | ||
uses: ncipollo/[email protected] | ||
with: | ||
tag: ${{ env.CURRENT_VERSION }} | ||
generateReleaseNotes: true | ||
commit: main | ||
prerelease: true | ||
body: | | ||
## Download Instructions | ||
### Maven | ||
```xml | ||
<repository> | ||
<id>reposilite-repository-snapshots</id> | ||
<name>Reposilite Repository</name> | ||
<url>https://maven.reposilite.com/snapshots</url> | ||
</repository> | ||
``` | ||
```xml | ||
<dependency> | ||
<groupId>io.javalin.community.ssl</groupId> | ||
<artifactId>ssl-plugin</artifactId> | ||
<version>${{ env.CURRENT_VERSION }}</version> | ||
</dependency> | ||
``` | ||
### Gradle | ||
```groovy | ||
maven { | ||
url "https://maven.reposilite.com/snapshots" | ||
} | ||
``` | ||
```groovy | ||
implementation('io.javalin.community.ssl:ssl-plugin:${{ env.CURRENT_VERSION }}') | ||
``` | ||
- name: Create Release | ||
if: "!contains(env.CURRENT_VERSION, 'SNAPSHOT')" | ||
uses: ncipollo/[email protected] | ||
with: | ||
tag: ${{ env.CURRENT_VERSION }} | ||
generateReleaseNotes: true | ||
commit: main | ||
commit: 5.x | ||
body: | | ||
## Download Instructions | ||
### Maven | ||
|
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