From e49f23c7db8644db23e000c9042eed6951549596 Mon Sep 17 00:00:00 2001 From: lisonge Date: Thu, 14 Sep 2023 14:40:30 +0800 Subject: [PATCH] chore: add actions lint --- .github/workflows/check.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index adadc52a..9d569bf0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,3 +24,12 @@ jobs: - run: pnpm install - run: pnpm run check + + - run: | + pnpm run format + pnpm run lint + git_status=$(git status --porcelain) + if [ -n "$git_status" ]; then + echo "提交代码风格不合规" + exit 1 + fi