From cd9c923608f0c2c8e71228a8fded8e44cbd6fc4a Mon Sep 17 00:00:00 2001 From: bot Date: Thu, 5 Nov 2026 03:17:13 +0000 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4=EF=BC=9Aci.yaml=20=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E5=85=B1=E7=94=A8=E7=9A=84=20action-ci=20=E8=88=87=20?= =?UTF-8?q?shellcheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 13 +++---------- README.md | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 0b72acd..fec1c05 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -11,14 +11,7 @@ jobs: runs-on: docker-ubuntu steps: - uses: actions/checkout@v4 - - name: shellcheck - run: | - curl -fsSL https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.xz | tar -xJ -C "$RUNNER_TEMP" --strip-components=1 - "$RUNNER_TEMP/shellcheck" -x -S warning ./*.sh - - uses: actions/setup-go@v5 + - uses: https://gitea.jsc.idv.tw/actions/action-ci@v0.0.1 with: - go-version-file: go.mod - - name: 腳本黑箱測試 - run: go vet ./... && go test ./test/ - - name: 建置映像檔 - run: docker build -t "action-test:$GITHUB_SHA" . + go_test: true + docker_build: true diff --git a/README.md b/README.md index 6edeaff..1f05a06 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,6 @@ ## 開發 -`ci.yaml` 跑 shellcheck、`test/` 的腳本黑箱測試(`go test ./test/`)、建置映像檔。 +`ci.yaml` 用共用的 [action-ci](https://gitea.jsc.idv.tw/actions/action-ci) 跑 shellcheck、Go 黑箱測試、映像檔建置。 圖示:`icon.svg`(Gitea 儲存庫頭像用 `icon.png`)。