Skip to content

chore: update GitHub Actions workflows and dependencies #15724

chore: update GitHub Actions workflows and dependencies

chore: update GitHub Actions workflows and dependencies #15724

Workflow file for this run

name: autofix.ci
on:
workflow_call:
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
MISE_TRUSTED_CONFIG_PATHS: ${{ github.workspace }}
MISE_EXPERIMENTAL: 1
MISE_LOCKFILE: 1
RUST_BACKTRACE: 1
NPM_CONFIG_FUND: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
autofix:
if: github.actor != 'renovate[bot]' && github.actor != 'mend[bot]'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
shared-key: build
save-if: false
- run: |
cargo build --all-features
echo "$PWD/target/debug" >> "$GITHUB_PATH"
- uses: ./.github/actions/mise-tools
- run: mise x -- bun i
- run: mise run render
- run: mise run lint-fix
- run: mise --cd crates/vfox run lint-fix
- uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8 # v1.3.3
# windows:
# runs-on: windows-latest
# timeout-minutes: 30
# steps:
# - run: git config --global core.autocrlf false
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
# - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2
# with:
# shared-key: autofix
# - run: |
# cargo build
# Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\target\debug"
# shell: pwsh
# - uses: actions/cache@v5.0.4
# with:
# key: ${{ runner.os }}-${{ runner.arch }}-mise-tools-${{ hashFiles('mise.lock') }}
# path: |
# ~/.local/share/mise
# ~/.cache/mise
# - run: mise install
# - run: mise x -- npm i
# #- run: mise run render
# - run: mise run lint-fix
# - run: mise --cd crates/vfox run lint-fix
# - uses: autofix-ci/action@v1.3.3