From 45400f372bce8b25dcc5f0512cb9833804db5d94 Mon Sep 17 00:00:00 2001 From: zrain <2296342883@qq.com> Date: Tue, 30 Jul 2024 20:49:40 +0800 Subject: [PATCH] Update tester.yml --- .github/workflows/tester.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index e8ef44829b8..d451c54648a 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -9,8 +9,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - &setup-java-maven - name: Setup java & maven + - name: Setup java & maven uses: actions/setup-java@v4 with: distribution: 'temurin' @@ -31,6 +30,7 @@ jobs: run_tests: runs-on: ubuntu-latest + needs: setup-dependencies env: TEMP: /tmp TEMPDIR: /tmp @@ -49,7 +49,12 @@ jobs: - name: Install distro run: pip3 install distro - - <<: *setup-java-maven + - name: Setup java & maven + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '8' + cache: 'maven' - name: Restore Maven dependencies from cache uses: actions/cache@v4