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

This commit is contained in:
bot
2026-11-05 03:17:12 +00:00
parent 9f597a37a8
commit bba45cf51d
2 changed files with 4 additions and 9 deletions
+3 -8
View File
@@ -11,15 +11,10 @@ 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: false
run: go vet ./... && go test ./test/
- id: ch - id: ch
uses: ./ uses: ./
with: with:
+1 -1
View File
@@ -38,6 +38,6 @@
## 開發 ## 開發
`ci.yaml` 跑 shellcheck、`test/` 的腳本黑箱測試(`go test ./test/`)、建置映像檔,並用 `uses: ./` 實際執行一次。 `ci.yaml` 用共用的 [action-ci](https://gitea.jsc.idv.tw/actions/action-ci) 跑 shellcheck、Go 黑箱測試,並用 `uses: ./` 實際執行一次(同時檢查映像檔建得起來)。
圖示:`icon.svg`(Gitea 儲存庫頭像用 `icon.png`)。 圖示:`icon.svg`(Gitea 儲存庫頭像用 `icon.png`)。