初始版本:從 feather-vault 搬出
ci / test (push) Successful in 1m1s

This commit is contained in:
bot
2026-11-05 02:54:23 +00:00
commit bae9657059
11 changed files with 218 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
name: ci
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
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
with:
go-version-file: go.mod
- name: 腳本黑箱測試
run: go vet ./... && go test ./test/
- name: 建置映像檔
run: docker build -t "action-test:$GITHUB_SHA" .