更新 GitHub Actions 工作流,添加 Java 测试缓存和 Redis 服务测试,删除不再使用的工作流
Some checks are pending
/ test-timezone (push) Waiting to run
/ hashFiles (push) Successful in -7s
/ go-hashfiles (push) Successful in 13s
/ services-test (push) Successful in -1s
/ job3 (push) Has been skipped
/ job1 (push) Successful in -7s
/ job2 (push) Successful in -33s

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

View File

@ -1,7 +0,0 @@
on:
push:
jobs:
docker-run:
runs-on: ubuntu-latest
steps:
- run: docker run --rm --quiet postgres:14-alpine pg_dump --version

View File

@ -1,13 +0,0 @@
on:
push:
jobs:
git-log:
runs-on: ubuntu-latest
steps:
- name: 📥 检出代码
uses: actions/checkout@main
with:
fetch-depth: 5
- name: 📝 提交日志
run: |
git --no-pager log --pretty=format:"%h %ad %s" --date=format:'%Y-%m-%d %H:%M:%S'

14
.github/workflows/services-test.yaml vendored Normal file
View File

@ -0,0 +1,14 @@
on:
push:
jobs:
services-test:
runs-on: ubuntu-latest
services:
redis:
image: redis:alpine
ports:
- 6379:6379
steps:
- name: Test with Redis
run: |
docker ps --format "table {{.Names}}\t{{.Ports}}"