fork/helix
git clone https://git.julia.blue/fork/helix
ccdb1446
23.05
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 15steps : 16- name : Checkout sources 17uses : actions/checkout@v3 18- name : Install stable toolchain 19uses : helix-editor/rust-toolchain@v1 20with : 21profile : minimal 22override : true 23 24- uses : Swatinem/rust-cache@v2 25 26- name : Run cargo check 27run : cargo check 28 29test : 30name : Test Suite 31runs-on : ${{ matrix.os }} 32env : 33RUST_BACKTRACE : 1 34HELIX_LOG_LEVEL : info 35steps : 36- name : Checkout sources 37uses : actions/checkout@v3 38 39- name : Install stable toolchain 40uses : dtolnay/rust-toolchain@1.65 41 42- uses : Swatinem/rust-cache@v2 43 44- name : Cache test tree-sitter grammar 45uses : actions/cache@v3 46with : 47path : runtime/grammars 48key : ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }} 49restore-keys : ${{ runner.os }}-stable-v${{ env.CACHE_VERSION }}-tree-sitter-grammars- 50 51- name : Run cargo test 52run : cargo test --workspace 53 54- name : Run cargo integration-test 55run : cargo integration-test 56 57strategy : 58matrix : 59os : [ ubuntu-latest , macos-latest , windows-latest ] 60 61lints : 62name : Lints 63runs-on : ubuntu-latest 64steps : 65- name : Checkout sources 66uses : actions/checkout@v3 67 68- name : Install stable toolchain 69uses : dtolnay/rust-toolchain@1.65 70with : 71components : rustfmt, clippy 72 73- uses : Swatinem/rust-cache@v2 74 75- name : Run cargo fmt 76run : cargo fmt --all --check 77 78- name : Run cargo clippy 79run : cargo clippy --workspace --all-targets -- -D warnings 80 81- name : Run cargo doc 82run : cargo doc --no-deps --workspace --document-private-items 83env : 84RUSTDOCFLAGS : -D warnings 85 86docs : 87name : Docs 88runs-on : ubuntu-latest 89steps : 90- name : Checkout sources 91uses : actions/checkout@v3 92 93- name : Install stable toolchain 94uses : dtolnay/rust-toolchain@1.65 95 96- uses : Swatinem/rust-cache@v2 97 98- name : Validate queries 99run : cargo xtask query-check 100 101- name : Generate docs 102run : cargo xtask docgen 103 104- name : Check uncommitted documentation changes 105run : | 106 git diff 107 git diff-files --quiet \ 108 || (echo "Run 'cargo xtask docgen', commit the changes and push again" \ 109 && exit 1) 110