Add terraform state path on deploy script and improve readme for JDK inclusion in PATH env var #103
Workflow file for this run
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: "Validate" | |
| on: [pull_request, push] | |
| env: | |
| JAVA_VERSION: '24' | |
| JAVA_DISTRO: 'jdk.java.net' | |
| MAVEN_HTTP_ARGS: '-Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dmaven.wagon.http.retryHandler.count=3' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| copyright: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK ${{ env.JAVA_VERSION }} | |
| uses: oracle-actions/[email protected] | |
| with: | |
| website: ${{ env.JAVA_DISTRO }} | |
| release: ${{ env.JAVA_VERSION }} | |
| cache: maven | |
| - name: Copyright | |
| run: etc/scripts/copyright.sh | |
| checkstyle: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ env.JAVA_VERSION }} | |
| uses: oracle-actions/[email protected] | |
| with: | |
| website: ${{ env.JAVA_DISTRO }} | |
| release: ${{ env.JAVA_VERSION }} | |
| cache: maven | |
| - name: Checkstyle | |
| run: etc/scripts/checkstyle.sh | |
| build: | |
| timeout-minutes: 10 | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-22.04, macos-latest, windows-2022 ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ env.JAVA_VERSION }} | |
| uses: oracle-actions/[email protected] | |
| with: | |
| website: ${{ env.JAVA_DISTRO }} | |
| release: ${{ env.JAVA_VERSION }} | |
| cache: maven | |
| - name: Maven build | |
| run: | | |
| mvn -B -e $MAVEN_HTTP_ARGS clean install | |
| spotbugs: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ env.JAVA_VERSION }} | |
| uses: oracle-actions/[email protected] | |
| with: | |
| website: ${{ env.JAVA_DISTRO }} | |
| release: ${{ env.JAVA_VERSION }} | |
| cache: maven | |
| - name: Spotbugs | |
| run: etc/scripts/spotbugs.sh | |
| shellcheck: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ env.JAVA_VERSION }} | |
| uses: oracle-actions/[email protected] | |
| with: | |
| website: ${{ env.JAVA_DISTRO }} | |
| release: ${{ env.JAVA_VERSION }} | |
| cache: maven | |
| - name: Shellcheck | |
| run: etc/scripts/shellcheck.sh |