Merge pull request #29 from ShipEngine/release-please--branches--main… #183
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
name: shipengine-java CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- ubuntu-18.04 | |
java-version: | |
- "11" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Java JDK v${{ matrix.java-version }} for x64 | |
uses: actions/setup-java@v2.3.0 | |
with: | |
java-version: ${{ matrix.java-version }} | |
architecture: x64 | |
distribution: "adopt" | |
server-id: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | |
- name: Lint the code | |
run: | | |
mvn --quiet checkstyle:check -Dmaven.test.skip=true | |
- name: Run test suite | |
run: | | |
mvn --quiet clean test jacoco:report coveralls:report -D repoToken=${{ secrets.COVERALLS_TOKEN }} |