ci: Add github action to publish docker images #37529
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: maven checks | |
| on: pull_request | |
| env: | |
| # An envar that signals to tests we are executing in the CI environment | |
| CONTINUOUS_INTEGRATION: true | |
| MAVEN_OPTS: -Xmx1024M -XX:+ExitOnOutOfMemoryError | |
| MAVEN_INSTALL_OPTS: -Xmx2G -XX:+ExitOnOutOfMemoryError | |
| RETRY: .github/bin/retry | |
| jobs: | |
| maven-checks: | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: [17.0.15] | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| concurrency: | |
| group: ${{ github.workflow }}-maven-checks-${{ github.event.pull_request.number }}-${{ matrix.java }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Free Disk Space | |
| uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 | |
| with: | |
| tool-cache: true | |
| swap-storage: false | |
| - uses: actions/checkout@v4 | |
| with: | |
| show-progress: false | |
| persist-credentials: false | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ matrix.java }} | |
| cache: maven | |
| - name: Download nodejs to maven cache | |
| run: .github/bin/download_nodejs | |
| - name: Maven Checks | |
| run: | | |
| export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" | |
| ./mvnw install -B -V -T 1C -DskipTests -Dmaven.javadoc.skip=true --no-transfer-progress -P ci -pl '!presto-test-coverage,!:presto-docs' | |
| - name: Clean Maven Output | |
| run: ./mvnw clean -pl '!:presto-server,!:presto-cli,!presto-test-coverage' |