mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
6f22859717
## Summary - update `oxc-project/setup-node` from v1.4.0 to v1.4.1 across all workflows - pick up `pnpm/action-setup` v6.0.10, whose newer bootstrap fixes broken `@pnpm/exe` shims during package-manager self-updates The setup action fix was released after oxc-project/setup-node#34.
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
merge_group:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: ${{ github.ref_name != 'main' }}
|
|
|
|
jobs:
|
|
autofix:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
|
|
|
|
- uses: oxc-project/setup-node@f46a72f95efdc55273fcd042d61c84e723b2892c # v1.4.1
|
|
|
|
- uses: oxc-project/setup-rust@3d6fb132fbe7cdcb66bf8ec193911c2945369d12 # v1.0.17
|
|
with:
|
|
restore-cache: true
|
|
cache-key: warm
|
|
tools: just,cargo-shear@1.13.1
|
|
components: rustfmt
|
|
|
|
- name: cargo-shear
|
|
id: shear
|
|
shell: bash
|
|
run: |
|
|
if ! cargo shear --fix --check-test-targets --deny-warnings --format=github; then
|
|
echo "shear=true" >> $GITHUB_OUTPUT
|
|
fi
|
|
|
|
- name: Check and update lock file
|
|
run: cargo check --all-features --all-targets
|
|
if: ${{ steps.shear.outputs.shear == 'true' }}
|
|
|
|
- run: just fmt
|
|
|
|
- name: Verify no fixes are needed
|
|
if: ${{ github.event_name == 'merge_group' }}
|
|
run: git diff --exit-code
|
|
|
|
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
fail-fast: false
|