diff --git a/.github/workflows/ci-actions.yml b/.github/workflows/ci-actions.yml index d44083b8c0..3e5b57c2ac 100644 --- a/.github/workflows/ci-actions.yml +++ b/.github/workflows/ci-actions.yml @@ -16,11 +16,12 @@ jobs: name: "Initial JDK 11 Weld Build + WildFly patch" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v3.12.0 with: java-version: 11 + distribution: 'temurin' - name: Download WildFly run: | # wget https://ci.wildfly.org/guestAuth/repository/download/WF_WildflyPreviewNightly/latest.lastSuccessful/wildfly-preview-latest-SNAPSHOT.zip @@ -40,7 +41,7 @@ jobs: shell: bash - name: Cache Maven Repository id: cache-maven - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.m2/repository # Caching is an automated pre/post action that installs the cache if the key exists and exports the cache @@ -59,7 +60,7 @@ jobs: zip -r wildfly.zip wildfly cd .. - name: Persist WildFly - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 with: name: wildfly-patched-zip path: container/wildfly.zip @@ -67,7 +68,7 @@ jobs: shell: bash run: tar -czf maven-repo.tgz -C ~ .m2/repository - name: Persist Maven Repo - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 with: name: maven-repo path: maven-repo.tgz @@ -93,14 +94,14 @@ jobs: java-version: 17, } steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java.name }} - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v3.12.0 with: java-version: ${{ matrix.java.java-version }} - + distribution: 'temurin' - name: Download Maven Repo - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: maven-repo path: . @@ -108,7 +109,7 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Download Patched WildFly - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: wildfly-patched-zip path: . @@ -126,13 +127,13 @@ jobs: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - find . -name 'server.log' -type f | tar -czf server-log.tgz -T - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: test-reports-incontainer-jdk${{matrix.java.name}} path: 'test-reports.tgz' - name: Upload server log artifact (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: server-log-incontainer-jdk${{matrix.java.name}} @@ -156,14 +157,14 @@ jobs: java-version: 17, } steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java.name }} - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v3.12.0 with: java-version: ${{ matrix.java.java-version }} - + distribution: 'temurin' - name: Download Maven Repo - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: maven-repo path: . @@ -171,7 +172,7 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Download Patched WildFly - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: wildfly-patched-zip path: . @@ -189,13 +190,13 @@ jobs: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - find . -name 'server.log' -type f | tar -czf server-log.tgz -T - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: test-reports-cdi-tck-jdk${{matrix.java.name}} path: 'test-reports.tgz' - name: Upload server log artifact (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: server-log-cdi-tck-jdk${{matrix.java.name}} @@ -215,12 +216,12 @@ jobs: java-version: 11, } steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java.name }} - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v3.12.0 with: java-version: ${{ matrix.java.java-version }} - + distribution: 'temurin' - name: Download Maven Repo uses: actions/download-artifact@v1 with: @@ -230,7 +231,7 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Download Patched WildFly - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: wildfly-patched-zip path: . @@ -248,13 +249,13 @@ jobs: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - find . -name 'server.log' -type f | tar -czf server-log.tgz -T - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: test-reports-cdi-tck-jdk${{matrix.java.name}}-incontainer-relaxed path: 'test-reports.tgz' - name: Upload server log artifact (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: server-log-cdi-tck-jdk${{matrix.java.name}} @@ -267,7 +268,7 @@ jobs: shell: bash run: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: test-reports-cdi-tck-jdk${{matrix.java.name}}-relaxed @@ -291,14 +292,14 @@ jobs: java-version: 17, } steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java.name }} - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v3.12.0 with: java-version: ${{ matrix.java.java-version }} - + distribution: 'temurin' - name: Download Maven Repo - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: maven-repo path: . @@ -313,7 +314,7 @@ jobs: shell: bash run: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: test-reports-no-container-jdk${{matrix.java.name}} @@ -326,13 +327,14 @@ jobs: needs: build-jdk11 timeout-minutes: 120 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v3.12.0 with: java-version: 11 + distribution: 'temurin' - name: Download Maven Repo - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: maven-repo path: . @@ -340,7 +342,7 @@ jobs: shell: bash run: tar -xzf maven-repo.tgz -C ~ - name: Download Patched WildFly - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: wildfly-patched-zip path: . @@ -358,13 +360,13 @@ jobs: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - find . -name 'server.log' -type f | tar -czf server-log.tgz -T - - name: Upload failed tests artifact (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: test-reports-examples path: 'test-reports.tgz' - name: Upload server log artifact (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: server-log-examples @@ -388,14 +390,14 @@ jobs: java-version: 17, } steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java.name }} - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v3.12.0 with: java-version: ${{ matrix.java.java-version }} - + distribution: 'temurin' - name: Download Maven Repo - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: maven-repo path: . @@ -410,7 +412,7 @@ jobs: shell: bash run: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: test-reports-cdi-tck-se-jdk${{matrix.java.name}} @@ -423,13 +425,14 @@ jobs: needs: build-jdk11 timeout-minutes: 20 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v3.12.0 with: java-version: 11 + distribution: 'temurin' - name: Download Maven Repo - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: maven-repo path: . @@ -444,7 +447,7 @@ jobs: shell: bash run: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: test-reports-se-servlet-coop