Skip to content

chore: Add autofix.ci workflow #5

chore: Add autofix.ci workflow

chore: Add autofix.ci workflow #5

Workflow file for this run

name: autofix.ci
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
- v1.x
permissions:
contents: read
jobs:
autofix:
name: Autofix fmt and lint
runs-on: ${{ fromJSON(vars.LINUX_SELF_HOSTED_RUNNER_LABELS || '"ubuntu-22.04"') }}
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- name: Pnpm Setup
uses: ./.github/actions/pnpm/setup
- name: Pnpm Install
uses: ./.github/actions/pnpm/install-dependencies
- name: Install Rust Toolchain
uses: ./.github/actions/rustup
with:
key: autofix
- name: Run auto-fixers
run: |
pnpm run lint-ci:js --write --unsafe || true
pnpm run format:js
pnpm run format:toml
cargo fix --allow-dirty --allow-staged --workspace --all-targets || true
cargo clippy --fix --allow-dirty --allow-staged --workspace --all-targets -- -W clippy::all || true
pnpm run format:rs
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
if: ${{ always() }}