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 }}"