mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
closes #5382 Autofixes toml, rust and unused dependencies. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
29 lines
799 B
YAML
29 lines
799 B
YAML
name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**/*.rs'
|
|
- '**/*.toml'
|
|
- '.github/workflows/autofix.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ 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@v1
|
|
- uses: Boshen/setup-rust@main
|
|
with:
|
|
restore-cache: false
|
|
tools: taplo-cli,cargo-shear@1
|
|
components: rustfmt
|
|
- run: cargo shear --fix
|
|
- run: taplo fmt
|
|
- run: cargo fmt --all
|
|
- uses: autofix-ci/action@v1.3.1
|
|
with:
|
|
fail-fast: false
|