Enhance reporting, add shellcheck (#28240)
* Enhance reporting, add shellcheck --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
dfa1d1027b
Коммит
60b38bb91a
@@ -4,6 +4,7 @@ SHELL := /bin/bash
|
||||
all: run
|
||||
run: generate-server start-server run-test
|
||||
stop: stop-server stop-dashboard clean
|
||||
report: collect-report-data publish-report
|
||||
clean:
|
||||
rm -fv .ci/server.yml
|
||||
rm -fv .ci/.env.{server,dashboard,cypress,playwright}
|
||||
@@ -34,17 +35,20 @@ cloud-init: requirecmd-jq requirecmd-curl
|
||||
cloud-teardown:
|
||||
bash ./.ci/server.cloud_teardown.sh
|
||||
|
||||
.PHONY: publish-report
|
||||
.PHONY: collect-report-data publish-report
|
||||
collect-report-data:
|
||||
bash ./.ci/report.collect.sh
|
||||
publish-report: requirecmd-node
|
||||
bash ./.ci/report.publish.sh
|
||||
|
||||
.PHONY: fmt-node fmt-shell fmt
|
||||
.PHONY: check-shell fmt-shell fmt-node fmt
|
||||
requirecmd-%:
|
||||
@which "$(*)" >/dev/null || { echo "Error, missing required CLI tool: $(*). Aborting." >&2; exit 1; }
|
||||
check-shell: requirecmd-shellcheck
|
||||
shellcheck ./.ci/*.sh ./.ci/.e2erc* # Install with https://webinstall.dev/shfmt/
|
||||
fmt-shell: requirecmd-shfmt
|
||||
shfmt -w -s -i 2 ./.ci/*.sh # Install with https://webinstall.dev/shellcheck/
|
||||
fmt-node: requirecmd-npx
|
||||
# Formats yaml files
|
||||
npx prettier ./.ci "!./.ci/dashboard" --write --cache
|
||||
fmt-shell: requirecmd-shfmt requirecmd-shellcheck
|
||||
shfmt -w -s -i 2 ./.ci/*.sh # Install with https://webinstall.dev/shellcheck/
|
||||
shellcheck ./.ci/*.sh ./.ci/.e2erc* # Install with https://webinstall.dev/shfmt/
|
||||
fmt: fmt-node fmt-shell
|
||||
|
||||
Ссылка в новой задаче
Block a user