Skip to content

feat(transformer): Optional Chaining #5651

feat(transformer): Optional Chaining

feat(transformer): Optional Chaining #5651

Workflow file for this run

name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".
on:
pull_request:
types: [opened, synchronize]
paths-ignore:
- "!.github/workflows/ci.yml"
- "!.github/actions/clone-submodules/action.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: just,cargo-shear@1,dprint
components: rustfmt
- name: Restore dprint plugin cache
id: cache-restore
uses: actions/cache/restore@v4
with:
key: dprint-autofix-ci-${{ runner.os }}-${{ hashFiles('dprint.json') }}
path: ~/.cache/dprint
- run: just fmt
- uses: autofix-ci/[email protected]
with:
fail-fast: false
- name: Save dprint plugin cache
if: ${{ github.ref_name == 'main' }}
id: cache-save
uses: actions/cache/save@v4
with:
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
path: ~/.cache/dprint