更新 GitHub Actions 工作流,添加 Java 测试缓存和 Redis 服务测试,删除不再使用的工作流

This commit is contained in:
严浩
2025-02-22 16:20:08 +08:00
parent 35784d9a9e
commit b61ed2be1c
4 changed files with 14 additions and 20 deletions

22
.github/workflows/cache.yaml.off vendored Normal file
View File

@@ -0,0 +1,22 @@
on:
push:
jobs:
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 || true
- run: ls -lha /opt/hostedtoolcache/pnpm-store || true
- run: env
# https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd$0