diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index febdb2e1..a43f497d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,6 +30,8 @@ jobs: run: yarn install --immutable - name: Code Lint run: yarn lint + - name: Code Format + run: yarn format - name: Commits Lint run: yarn commitlint --verbose --from "${{ github.event.pull_request.base.sha || github.event.commits[0].id }}" --to "${{ github.event.pull_request.head.sha || github.event.head_commit.id }}" - name: Build diff --git a/.husky/pre-commit b/.husky/pre-commit index c90a5bea..ccc93560 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,2 @@ yarn lint-staged -CI=true yarn lint && yarn ts:check && yarn run test:unit && yarn copyright +CI=true yarn lint && yarn format && yarn ts:check && yarn run test:unit && yarn copyright