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