From a0d1004d5df000afa83f55d680598bb424ea1bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 14 Oct 2024 12:11:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Java=20=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=B9=B6=E6=9B=B4=E6=96=B0=20Go=20?= =?UTF-8?q?=E5=93=88=E5=B8=8C=E6=96=87=E4=BB=B6=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cache.yaml | 13 +++++++++++-- .github/workflows/hashFiles.yaml | 6 +++--- .github/workflows/测试needs.yaml | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml index e88a37f..ad39404 100644 --- a/.github/workflows/cache.yaml +++ b/.github/workflows/cache.yaml @@ -2,10 +2,19 @@ on: push: jobs: - job1: + Cache-Java-Test: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-java@v4 + with: + distribution: "adopt" + java-version: 17 + - run: java -version + opt_hostedtoolcache: + needs: [Cache-Java-Test] runs-on: ubuntu-latest steps: - run: ls -lha /opt/hostedtoolcache - run: ls -lha /opt/hostedtoolcache/node - run: ls -lha /opt/hostedtoolcache/pnpm-store - - run: env \ No newline at end of file + - run: env diff --git a/.github/workflows/hashFiles.yaml b/.github/workflows/hashFiles.yaml index adb0399..b1fdb25 100644 --- a/.github/workflows/hashFiles.yaml +++ b/.github/workflows/hashFiles.yaml @@ -26,11 +26,11 @@ jobs: # Setup the Go environment. This step can be skipped if Go has been installed. - uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: "1.20" - uses: https://gitea.com/actions/go-hashfiles@main id: get-hash - with: + with: patterns: |- go.sum ./admin/* @@ -38,4 +38,4 @@ jobs: README.md - name: Echo hash - run: echo ${{ steps.get-hash.outputs.hash }} \ No newline at end of file + run: echo ${{ steps.get-hash.outputs.hash }} diff --git a/.github/workflows/测试needs.yaml b/.github/workflows/测试needs.yaml index d76853c..058b79a 100644 --- a/.github/workflows/测试needs.yaml +++ b/.github/workflows/测试needs.yaml @@ -32,4 +32,4 @@ jobs: - name: step4 run: | echo "step4" - echo "step1-output: ${{ needs.job1.outputs.job1-output }}" \ No newline at end of file + echo "step1-output: ${{ needs.job1.outputs.job1-output }}"