From 485a11395ea5bd274bbe3637c0ab8f8711e909b6 Mon Sep 17 00:00:00 2001 From: Mustapha Zorgati <15628173+mustaphazorgati@users.noreply.github.com> Date: Fri, 9 Apr 2021 13:06:24 +0200 Subject: [PATCH] TSK-1615: updated setup-java action to v2 --- .github/workflows/continuous-integration.yml | 27 +++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index a03a0096e..42f943250 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -41,8 +41,9 @@ jobs: - name: Git checkout uses: actions/checkout@v2 - name: Set up JDK ${{ env.JAVA_VERSION }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: ${{ env.JAVA_VERSION }} - name: Cache maven dependencies id: cache @@ -78,8 +79,9 @@ jobs: - name: Git checkout uses: actions/checkout@v2 - name: Set up JDK ${{ env.JAVA_VERSION }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: ${{ env.JAVA_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v2.1.5 @@ -133,8 +135,9 @@ jobs: - name: Git checkout uses: actions/checkout@v2 - name: Set up JDK 8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: 8 - name: Cache maven dependencies uses: actions/cache@v2.1.4 @@ -161,8 +164,9 @@ jobs: - name: Git checkout uses: actions/checkout@v2 - name: Set up JDK ${{ env.JAVA_VERSION }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: ${{ env.JAVA_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v2.1.5 @@ -250,8 +254,9 @@ jobs: - name: Git checkout uses: actions/checkout@v2 - name: Set up JDK ${{ env.JAVA_VERSION }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: ${{ env.JAVA_VERSION }} - name: Cache maven dependencies uses: actions/cache@v2.1.4 @@ -291,8 +296,9 @@ jobs: - name: Git checkout uses: actions/checkout@v2 - name: Set up JDK 8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: 8 - name: Cache maven dependencies uses: actions/cache@v2.1.4 @@ -334,8 +340,9 @@ jobs: # source: https://github.community/t/action-does-not-trigger-another-on-push-tag-action/17148/7 token: ${{ secrets.ADMIN_PERSONAL_ACCESS_TOKEN }} - name: Set up JDK ${{ env.JAVA_VERSION }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: ${{ env.JAVA_VERSION }} - name: Cache maven dependencies uses: actions/cache@v2.1.4 @@ -389,8 +396,9 @@ jobs: - name: Git checkout uses: actions/checkout@v2 - name: Set up JDK ${{ env.JAVA_VERSION }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: ${{ env.JAVA_VERSION }} - name: Cache maven dependencies uses: actions/cache@v2.1.4 @@ -445,8 +453,9 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK ${{ env.JAVA_VERSION }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: ${{ env.JAVA_VERSION }} - name: Cache SonarCloud packages uses: actions/cache@v2.1.4