調整:ci.yaml 改用共用的 action-ci 與 shellcheck
ci / test (push) Canceled after 2m32s

This commit is contained in:
bot
2026-11-05 03:17:11 +00:00
parent 9e13dad6ad
commit 59f63a7f7e
2 changed files with 4 additions and 11 deletions
+3 -10
View File
@@ -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
+1 -1
View File
@@ -25,6 +25,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`)。