添加 Java 缓存工作流并更新 Go 哈希文件工作流配置
This commit is contained in:
13
.github/workflows/cache.yaml
vendored
13
.github/workflows/cache.yaml
vendored
@@ -2,10 +2,19 @@ on:
|
|||||||
push:
|
push:
|
||||||
|
|
||||||
jobs:
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: ls -lha /opt/hostedtoolcache
|
- run: ls -lha /opt/hostedtoolcache
|
||||||
- run: ls -lha /opt/hostedtoolcache/node
|
- run: ls -lha /opt/hostedtoolcache/node
|
||||||
- run: ls -lha /opt/hostedtoolcache/pnpm-store
|
- 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.
|
# Setup the Go environment. This step can be skipped if Go has been installed.
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: "1.20"
|
||||||
|
|
||||||
- uses: https://gitea.com/actions/go-hashfiles@main
|
- uses: https://gitea.com/actions/go-hashfiles@main
|
||||||
id: get-hash
|
id: get-hash
|
||||||
with:
|
with:
|
||||||
patterns: |-
|
patterns: |-
|
||||||
go.sum
|
go.sum
|
||||||
./admin/*
|
./admin/*
|
||||||
@@ -38,4 +38,4 @@ jobs:
|
|||||||
README.md
|
README.md
|
||||||
|
|
||||||
- name: Echo hash
|
- 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
|
- name: step4
|
||||||
run: |
|
run: |
|
||||||
echo "step4"
|
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