From 201c80dac29207249df59b94e7a9ae9f046ef333 Mon Sep 17 00:00:00 2001 From: RakhithaRR Date: Fri, 27 Sep 2024 12:39:19 +0530 Subject: [PATCH] Fix git action for UI PRs --- .github/workflows/main.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72e4c9944cf..04772e7f925 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,9 @@ -name: API Manager Build with Test +name: apim-apps build with tests on: - push: - branches: - - master pull_request: branches: - - master + - main workflow_dispatch: jobs: @@ -23,14 +20,14 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: '10' - - name: Set up JDK 1.8 - uses: actions/setup-java@v2 + - name: Set up JDK + uses: actions/setup-java@v4 with: - java-version: 8 - distribution: 'adopt' - - uses: actions/setup-node@v1 + java-version: 11 + distribution: 'temurin' + - uses: actions/setup-node@v4 with: - node-version: '14.x' + node-version: '22' - name: Cache Maven packages uses: actions/cache@v2 with: