refactor: split smoke and integration test configs into separate CI jobs (#264)
* refactor: split smoke and integration test configs into separate CI jobs * fix: move CLA labeling from triage to CLA workflow * fix: install formatters in temp dir to avoid catalog: protocol error * fix: handle 404 when removing labels that don't exist on the PR
This commit is contained in:
13
.github/workflows/auto-format.yml
vendored
13
.github/workflows/auto-format.yml
vendored
@@ -56,20 +56,13 @@ jobs:
|
||||
ref: ${{ steps.pr.outputs.sha }}
|
||||
persist-credentials: false
|
||||
|
||||
# --- Install formatters directly (no pnpm install, no postinstall scripts) ---
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Install formatters
|
||||
run: npm install --no-save --ignore-scripts oxfmt prettier prettier-plugin-astro
|
||||
|
||||
- name: Run formatters
|
||||
run: |
|
||||
npx oxfmt --ignore-path .gitignore
|
||||
npx prettier --write .
|
||||
- name: Run formatter
|
||||
run: npx oxfmt --ignore-path .gitignore
|
||||
|
||||
- name: Check for changes
|
||||
id: diff
|
||||
@@ -125,5 +118,5 @@ jobs:
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: ${{ steps.pr.outputs.number }},
|
||||
body: `Could not push formatting changes to this fork. The contributor may have "Allow edits by maintainers" disabled.\n\nPlease run the formatter locally:\n\n\`\`\`\nnpx oxfmt --ignore-path .gitignore\nnpx prettier --write .\n\`\`\``,
|
||||
body: `Could not push formatting changes to this fork. The contributor may have "Allow edits by maintainers" disabled.\n\nPlease run the formatter locally:\n\n\`\`\`\npnpm format\n\`\`\``,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user