Merge pull request #538 from aws/dependabot/maven/aws.java.sdk.versio… #2265
This file contains hidden or 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: Java Build | |
permissions: {} | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main", "release-*"] | |
merge_group: | |
schedule: | |
# daily at 1:30 UTC | |
- cron: '30 1 * * *' | |
concurrency: | |
group: java-build-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04 ] | |
java: [ "11", "17" ] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
- name: Build JAR Artifacts and verify coverage | |
run: mvn --batch-mode --no-transfer-progress --errors --update-snapshots clean package -Drevision=$(git describe --tags --always) | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | |
with: | |
name: maven-build-java-${{ matrix.java }} | |
path: target/ | |
if-no-files-found: error | |
retention-days: 5 |