From fb3d09fa07584c218fa01fde07b7467c2a4db4fb Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Tue, 12 Nov 2024 16:05:13 +0200 Subject: [PATCH] Testing setup-java version selection Test setup-java@v4 for selecting latest version of distribution. --- .github/workflows/ci-test.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci-test.yml diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml new file mode 100644 index 00000000..5bcfc1e6 --- /dev/null +++ b/.github/workflows/ci-test.yml @@ -0,0 +1,38 @@ +name: 'CI - PR' + +on: + workflow_dispatch: + +env: + MAIN_PATH: 'build-dir' + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MAVEN_THREADS: 'false' +jobs: + build: + if: github.repository == 'spring-cloud/stream-applications' + runs-on: ubuntu22-8-32-OSS + steps: + - name: 'Configure: checkout stream-applications@${{ github.ref_name }}' + uses: actions/checkout@v3 + - name: 'Configure: checkout stream-applications@main' + id: checkout-main + uses: actions/checkout@v3 + with: + ref: 'main' + path: ${{ env.MAIN_PATH }} + - name: 'Configure: Install gh cli' + uses: ./.github/actions/install-gh + - name: 'Configure: Ensure scripts are executable' + shell: bash + run: find . -type f -name "*.sh" -exec chmod a+x '{}' \; + - name: 'Configure: Install Java' + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: graalvm + - name: 'Action: Build Core' + shell: bash + env: + VERBOSE: ${{ github.debug && 'true' || '' }} + run: | + ./build-core.sh "-T 1C package -Psnapshot" \ No newline at end of file