From 481624f2343277293e0d80f0ea2bbb5c371b576a Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Mon, 16 Dec 2024 18:07:05 +0800 Subject: [PATCH] Upgrade CI: upgrade gitup action components --- .github/workflows/maven.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index abdbb818..787986dd 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -23,20 +23,21 @@ jobs: java: ['1.8', '11'] steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v1 + - uses: actions/checkout@v4 + - uses: actions/cache@v3 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} + distribution: 'adopt' - name: Build with Maven Java ${{ matrix.java }} run: mvn -s .m2-settings.xml -B -fae clean install - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: surefire-reports-${{ matrix.os }}-${{ matrix.java }}