Merge pull request #2 from porscheofficial/feature/fix-conflicts #5
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: Java CI Push | |
on: [push, pull_request] | |
jobs: | |
# This is from: https://github.com/fkirc/skip-duplicate-actions#example-1-skip-entire-jobs | |
pre_job: | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/[email protected] | |
with: | |
cancel_others: 'true' | |
concurrent_skipping: 'same_content_newer' | |
do_not_skip: '["workflow_dispatch", "schedule", "merge_group", "pull_request"]' | |
build: | |
needs: pre_job | |
if: needs.pre_job.outputs.should_skip != 'true' | |
runs-on: aws-athena-query-federation_ubuntu-latest_16-core | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '11' | |
# Target java 8 to ensure that the source is compatible with java 8 | |
- name: Build with Maven | |
env: | |
AWS_DEFAULT_REGION: us-east-1 | |
AWS_REGION: us-east-1 | |
run: mvn -B clean package -T 1C --file pom.xml -Dmaven.compiler.release=8 -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN --no-transfer-progress | |
# Identify if any files were modified as a result of running maven build. | |
- name: Identify any Maven Build changes | |
run: > | |
! (git status | grep "modified: " ) |