fork/helix
git clone https://git.julia.blue/fork/helix
dfa5382c
24.03
1name : Build 2on : 3pull_request : 4push : 5branches : 6- master 7merge_group : 8schedule : 9- cron : '00 01 * * *' 10 11jobs : 12check : 13name : Check (msrv) 14runs-on : ubuntu-latest 15if : github.repository == 'helix-editor/helix' || github.event_name != 'schedule' 16steps : 17- name : Checkout sources 18uses : actions/checkout@v4 19- name : Install stable toolchain 20uses : helix-editor/rust-toolchain@v1 21with : 22profile : minimal 23override : true 24 25- uses : Swatinem/rust-cache@v2 26with : 27shared-key : "build" 28 29- name : Run cargo check 30run : cargo check 31 32test : 33name : Test Suite 34runs-on : ${{ matrix.os }} 35if : github.repository == 'helix-editor/helix' || github.event_name != 'schedule' 36env : 37RUST_BACKTRACE : 1 38HELIX_LOG_LEVEL : info 39steps : 40- name : Checkout sources 41uses : actions/checkout@v4 42 43- name : Install stable toolchain 44uses : dtolnay/rust-toolchain@1.70 45 46- uses : Swatinem/rust-cache@v2 47with : 48shared-key : "build" 49 50- name : Cache test tree-sitter grammar 51uses : actions/cache@v4 52with : 53path : runtime/grammars 54key : ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }} 55restore-keys : ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars- 56 57- name : Run cargo test 58run : cargo test --workspace 59 60- name : Run cargo integration-test 61run : cargo integration-test 62 63strategy : 64matrix : 65os : [ ubuntu-latest , macos-latest , windows-latest ] 66 67lints : 68name : Lints 69runs-on : ubuntu-latest 70if : github.repository == 'helix-editor/helix' || github.event_name != 'schedule' 71steps : 72- name : Checkout sources 73uses : actions/checkout@v4 74 75- name : Install stable toolchain 76uses : dtolnay/rust-toolchain@1.70 77with : 78components : rustfmt, clippy 79 80- uses : Swatinem/rust-cache@v2 81with : 82shared-key : "build" 83 84- name : Run cargo fmt 85run : cargo fmt --all --check 86 87- name : Run cargo clippy 88run : cargo clippy --workspace --all-targets -- -D warnings 89 90- name : Run cargo doc 91run : cargo doc --no-deps --workspace --document-private-items 92env : 93RUSTDOCFLAGS : -D warnings 94 95docs : 96name : Docs 97runs-on : ubuntu-latest 98if : github.repository == 'helix-editor/helix' || github.event_name != 'schedule' 99steps : 100- name : Checkout sources 101uses : actions/checkout@v4 102 103- name : Install stable toolchain 104uses : dtolnay/rust-toolchain@1.70 105 106- uses : Swatinem/rust-cache@v2 107with : 108shared-key : "build" 109 110- name : Validate queries 111run : cargo xtask query-check 112 113- name : Generate docs 114run : cargo xtask docgen 115 116- name : Check uncommitted documentation changes 117run : | 118 git diff 119 git diff-files --quiet \ 120 || (echo "Run 'cargo xtask docgen', commit the changes and push again" \ 121 && exit 1) 122