mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
32 lines
804 B
YAML
32 lines
804 B
YAML
name: autofix.ci
|
|
on:
|
|
workflow_call:
|
|
pull_request:
|
|
push:
|
|
branches: [ "main" ]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
autofix:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/cache@v5
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: autofix-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- run: rustup toolchain install ${{ env.rust_clippy }} --profile minimal --component rustfmt --component clippy
|
|
- run: rustup default ${{ env.rust_clippy }}
|
|
|
|
- run: cargo clippy --fix --workspace
|
|
- run: cargo fmt --all
|
|
|
|
- uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8
|