Skip to content

Commit

Permalink
Update CI actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed Sep 14, 2023
1 parent 5f2a72b commit cf5ecaa
Showing 1 changed file with 47 additions and 44 deletions.
91 changes: 47 additions & 44 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -59,15 +60,15 @@ 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
- name: Tar Maven Repo
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
Expand All @@ -93,22 +94,22 @@ 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: .
- name: Extract Maven Repo
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: .
Expand All @@ -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}}
Expand All @@ -156,22 +157,22 @@ 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 }}

- name: Download Maven Repo
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: maven-repo
path: .
- name: Extract Maven Repo
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: .
Expand All @@ -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}}
Expand All @@ -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:
Expand All @@ -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: .
Expand All @@ -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}}
Expand All @@ -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
Expand All @@ -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 }}

- name: Download Maven Repo
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: maven-repo
path: .
Expand All @@ -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}}
Expand All @@ -326,21 +327,22 @@ 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: .
- name: Extract Maven Repo
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: .
Expand All @@ -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
Expand All @@ -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: .
Expand All @@ -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}}
Expand All @@ -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: .
Expand All @@ -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
Expand Down

0 comments on commit cf5ecaa

Please sign in to comment.