diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index a5674a0..f26c48b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -11,15 +11,10 @@ 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/ + go_test: true + docker_build: false - id: ch uses: ./ with: diff --git a/README.md b/README.md index b6c9d7c..c058800 100644 --- a/README.md +++ b/README.md @@ -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`)。