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

This commit is contained in:
bot
2026-11-05 03:17:13 +00:00
parent 65627a6977
commit cd9c923608
2 changed files with 4 additions and 11 deletions
+3 -10
View File
@@ -11,14 +11,7 @@ jobs:
runs-on: docker-ubuntu runs-on: docker-ubuntu
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: shellcheck - uses: https://gitea.jsc.idv.tw/actions/action-ci@v0.0.1
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
with: with:
go-version-file: go.mod go_test: true
- name: 腳本黑箱測試 docker_build: true
run: go vet ./... && go test ./test/
- name: 建置映像檔
run: docker build -t "action-test:$GITHUB_SHA" .
+1 -1
View File
@@ -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`)。 圖示:`icon.svg`(Gitea 儲存庫頭像用 `icon.png`)。