Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 22 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ jobs:
matrix:
java_version: [ "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23" ]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up JDK for compilation
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: "zulu"
java-version: "23" # Always use the latest JDK for building
java-version: "21" # Always use the most recent LTS JDK for building
cache: "maven"
- name: Load Maven dependencies cache
uses: actions/cache@v3
with:
Expand All @@ -31,21 +32,23 @@ jobs:
- name: Compile
run: make build
- name: Set up Java ${{ matrix.java_version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
distribution: "zulu"
java-version: ${{ matrix.java_version }}
cache: "maven"
- name: Run test with Java ${{ matrix.java_version }}
run: make test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up JDK for compilation
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: "zulu"
java-version: "23" # Always use the latest JDK for building
java-version: "21" # Always use the most recent LTS JDK for building
cache: "maven"
- name: Install dependencies
run: make install
- name: Test coverage
Expand All @@ -68,18 +71,18 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK for compilation
uses: actions/setup-java@v4
- uses: actions/checkout@v5
- uses: actions/setup-java@v5
with:
distribution: "zulu"
java-version: "23" # Always use the latest JDK for building
- name: Install dependencies
run: make install
- name: Run CheckStyle checks
uses: nikitasavinov/[email protected]
java-version: "21" # Always use the most recent LTS JDK for building
cache: "maven"
- name: Install checkstyle and style guide
run: make install-checkstyle
- name: Lint
run: make lint
- name: Upload Test results
uses: actions/upload-artifact@master
with:
level: error
fail_on_error: true
checkstyle_config: easypost_java_style.xml
tool_name: "style_enforcer"
name: DependencyCheck report
path: ${{github.workspace}}/target/dependency-check-report.html
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2</url>
</repository>
</distributionManagement>
<properties>
Expand Down Expand Up @@ -186,14 +186,15 @@
<release>8</release>
</configuration>
</plugin>
<!-- TODO: Switch to new central-publishing-maven-plugin -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
Expand Down
Loading