From b61ed2be1c8bd93133d1a9c70b618edb51e9ba42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sat, 22 Feb 2025 16:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20GitHub=20Actions=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C=E6=B7=BB=E5=8A=A0=20Java?= =?UTF-8?q?=20=E6=B5=8B=E8=AF=95=E7=BC=93=E5=AD=98=E5=92=8C=20Redis=20?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=B5=8B=E8=AF=95=EF=BC=8C=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E4=BD=BF=E7=94=A8=E7=9A=84=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{cache.yaml => cache.yaml.off} | 0 .github/workflows/docker-run.yaml | 7 ------- .github/workflows/git-log.yaml | 13 ------------- .github/workflows/services-test.yaml | 14 ++++++++++++++ 4 files changed, 14 insertions(+), 20 deletions(-) rename .github/workflows/{cache.yaml => cache.yaml.off} (100%) delete mode 100644 .github/workflows/docker-run.yaml delete mode 100644 .github/workflows/git-log.yaml create mode 100644 .github/workflows/services-test.yaml diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml.off similarity index 100% rename from .github/workflows/cache.yaml rename to .github/workflows/cache.yaml.off diff --git a/.github/workflows/docker-run.yaml b/.github/workflows/docker-run.yaml deleted file mode 100644 index 5db99a9..0000000 --- a/.github/workflows/docker-run.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.github/workflows/git-log.yaml b/.github/workflows/git-log.yaml deleted file mode 100644 index b26c02b..0000000 --- a/.github/workflows/git-log.yaml +++ /dev/null @@ -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' \ No newline at end of file diff --git a/.github/workflows/services-test.yaml b/.github/workflows/services-test.yaml new file mode 100644 index 0000000..058f33c --- /dev/null +++ b/.github/workflows/services-test.yaml @@ -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}}" \ No newline at end of file