Skip to content

Commit

Permalink
Merge pull request #72 from chengfang/upgrade.ci.actions.WFNC-85
Browse files Browse the repository at this point in the history
WFNC-85 Upgrade github actions to avoid github action warnings
  • Loading branch information
ropalka authored Dec 13, 2022
2 parents 2cba4ab + 686097b commit 102049c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:

jobs:
build-test-matrix:
name: ${{ matrix.impl}}-${{ matrix.jdk }}-${{ matrix.os }}
name: ${{ matrix.jdk-distribution }}-${{ matrix.jdk-version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest]
jdk: [11, 17]
impl: [hotspot, openj9]
os: [ubuntu-latest, windows-latest]
jdk-distribution: [temurin, adopt-openj9]
jdk-version: [11, 17]
steps:
- name: Configure runner - Linux
if: contains(matrix.os, 'ubuntu')
Expand All @@ -30,16 +30,16 @@ jobs:
echo '127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4' > %SystemRoot%\System32\drivers\etc\hosts
echo '::1 localhost localhost.localdomain localhost6 localhost6.localdomain6' >> %SystemRoot%\System32\drivers\etc\hosts
shell: cmd
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.jdk }}
uses: AdoptOpenJDK/install-jdk@v1
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.jdk-distribution }} ${{ matrix.jdk-version }}
uses: actions/setup-java@v3
with:
version: ${{ matrix.jdk }}
impl: ${{ matrix.impl }}
distribution: ${{ matrix.jdk-distribution }}
java-version: ${{ matrix.jdk-version }}
- name: Run Tests
run: mvn -ntp -U -B -fae clean install
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: failure()
with:
name: surefire-reports-${{ matrix.openjdk}}-${{ matrix.jdk }}-${{ matrix.os }}
name: surefire-${{ matrix.jdk-distribution }}-${{ matrix.jdk-version }}-${{ matrix.os }}
path: '**/surefire-reports/*.txt'

0 comments on commit 102049c

Please # to comment.