添加 Java 缓存工作流并更新 Go 哈希文件工作流配置
All checks were successful
/ job1 (push) Successful in 8s
/ job2 (push) Successful in 9s
/ job3 (push) Has been skipped
/ go-hashfiles (push) Successful in 22s
/ hashFiles (push) Successful in 8s
/ Cache-Java-Test (push) Successful in 1m21s
/ opt_hostedtoolcache (push) Successful in 7s
All checks were successful
/ job1 (push) Successful in 8s
/ job2 (push) Successful in 9s
/ job3 (push) Has been skipped
/ go-hashfiles (push) Successful in 22s
/ hashFiles (push) Successful in 8s
/ Cache-Java-Test (push) Successful in 1m21s
/ opt_hostedtoolcache (push) Successful in 7s
This commit is contained in:
13
.github/workflows/cache.yaml
vendored
13
.github/workflows/cache.yaml
vendored
@ -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
|
||||
- run: env
|
||||
|
6
.github/workflows/hashFiles.yaml
vendored
6
.github/workflows/hashFiles.yaml
vendored
@ -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 }}
|
||||
run: echo ${{ steps.get-hash.outputs.hash }}
|
||||
|
2
.github/workflows/测试needs.yaml
vendored
2
.github/workflows/测试needs.yaml
vendored
@ -32,4 +32,4 @@ jobs:
|
||||
- name: step4
|
||||
run: |
|
||||
echo "step4"
|
||||
echo "step1-output: ${{ needs.job1.outputs.job1-output }}"
|
||||
echo "step1-output: ${{ needs.job1.outputs.job1-output }}"
|
||||
|
Reference in New Issue
Block a user