This commit is contained in:
@@ -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" .
|
|
||||||
|
|||||||
Reference in New Issue
Block a user