mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 06:34:54 +08:00
fix(release):完善当前分发证明与质量门禁
This commit is contained in:
@@ -249,18 +249,18 @@ jobs:
|
||||
source /var/lib/act_runner/env.sh
|
||||
go build -o /tmp/bat-api ./cmd/bat-api
|
||||
|
||||
- name: Optional Go lint
|
||||
- name: Required Go lint
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
source /var/lib/act_runner/env.sh
|
||||
if command -v golangci-lint >/dev/null 2>&1; then
|
||||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-/tmp/bat-xdg-cache}"
|
||||
golangci-lint run ./...
|
||||
else
|
||||
printf 'SKIP optional: Go lint (golangci-lint); reason=command not installed\n'
|
||||
fi
|
||||
source scripts/ci-versions.sh
|
||||
command -v golangci-lint >/dev/null 2>&1
|
||||
actual="$(golangci_lint_actual_version)"
|
||||
test "${actual}" = "${GOLANGCI_LINT_VERSION}"
|
||||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-/tmp/bat-xdg-cache}"
|
||||
golangci-lint run ./...
|
||||
|
||||
- name: Run documentation status gate
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user