From 6ef19f9d9d3fdcbe0f042a896e35fd0e5322ce2a Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 19 Feb 2022 12:15:45 +0100 Subject: ci(tests): download highlight-assertions for faster CI This avoids any Rust build dependencies. --- .github/workflows/tests.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 98bb68744..1b445573e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,28 +30,13 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - - - name: Cache .cargo - id: cargo-cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - key: ${{ matrix.os }}-rust-cargo-v1 - - name: Test Dependencies run: | mkdir -p ~/.local/share/nvim/site/pack/plenary.nvim/start cd ~/.local/share/nvim/site/pack/plenary.nvim/start git clone https://github.com/nvim-lua/plenary.nvim - ~/.cargo/bin/cargo +nightly install --force --git https://github.com/theHamsta/highlight-assertions --locked + curl -L https://github.com/theHamsta/highlight-assertions/releases/download/v0.1.5/highlight-assertions_v0.1.5_x86_64-unknown-linux-gnu.tar.gz | tar -xz + cp highlight-assertions /usr/local/bin - name: Install and prepare Neovim env: @@ -75,4 +60,4 @@ jobs: nvim --headless -c "TSInstallSync all" -c "q" - name: Tests - run: PATH=~/.cargo/bin:$PATH ./scripts/run_tests.sh + run: PATH=/usr/local/bin:$PATH ./scripts/run_tests.sh -- cgit v1.2.3-70-g09d2