fix(dev/ci): pre-commit fixes galore (#32352)

This commit is contained in:
Evan Rusackas
2025-02-24 11:26:45 -07:00
committed by GitHub
parent c583eec4c7
commit 90651dfe3e
91 changed files with 3435 additions and 2142 deletions

View File

@@ -38,11 +38,26 @@ jobs:
echo "HOMEBREW_CELLAR=$HOMEBREW_CELLAR" >>"${GITHUB_ENV}"
echo "HOMEBREW_REPOSITORY=$HOMEBREW_REPOSITORY" >>"${GITHUB_ENV}"
brew install norwoodj/tap/helm-docs
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Frontend Dependencies
run: |
cd superset-frontend
npm install
- name: Install Docs Dependencies
run: |
cd docs
yarn install
- name: pre-commit
run: |
set +e # Don't exit immediately on failure
# Skip eslint and type-checking-frontend as they requires `npm ci`. Both eslint and type-check are handled in other jobs.
export SKIP=eslint,type-checking-frontend
# Skip auto-fixing in CI to ensure changes are committed locally
export SKIP_FIX=1
pre-commit run --all-files
if [ $? -ne 0 ] || ! git diff --quiet --exit-code; then
echo "❌ Pre-commit check failed."