run_style_checks.yml

 1# Generated from xtask::workflows::run_style_checks
 2# Rebuild with `cargo xtask workflows`.
 3name: run_style_checks
 4env:
 5  CARGO_TERM_COLOR: always
 6  RUST_BACKTRACE: '1'
 7  CARGO_INCREMENTAL: '0'
 8on:
 9  pull_request:
10    branches:
11    - '**'
12  push:
13    branches:
14    - main
15    - v[0-9]+.[0-9]+.x
16jobs:
17  check_style:
18    if: github.repository_owner == 'zed-industries'
19    runs-on: namespace-profile-4x8-ubuntu-2204
20    steps:
21    - name: steps::checkout_repo
22      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
23      with:
24        clean: false
25    - name: steps::setup_pnpm
26      uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
27      with:
28        version: '9'
29    - name: ./script/prettier
30      run: ./script/prettier
31      shell: bash -euxo pipefail {0}
32    - name: ./script/check-todos
33      run: ./script/check-todos
34      shell: bash -euxo pipefail {0}
35    - name: ./script/check-keymaps
36      run: ./script/check-keymaps
37      shell: bash -euxo pipefail {0}
38    - name: run_style_checks::check_for_typos
39      uses: crate-ci/typos@80c8a4945eec0f6d464eaf9e65ed98ef085283d1
40      with:
41        config: ./typos.toml
42    - name: steps::cargo_fmt
43      run: cargo fmt --all -- --check
44      shell: bash -euxo pipefail {0}
45    timeout-minutes: 60
46concurrency:
47  group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
48  cancel-in-progress: true