mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
ci(tests): download highlight-assertions for faster CI
This avoids any Rust build dependencies.
This commit is contained in:
parent
85b0dea0bf
commit
6ef19f9d9d
1 changed files with 3 additions and 18 deletions
21
.github/workflows/tests.yml
vendored
21
.github/workflows/tests.yml
vendored
|
|
@ -30,28 +30,13 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@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
|
- name: Test Dependencies
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.local/share/nvim/site/pack/plenary.nvim/start
|
mkdir -p ~/.local/share/nvim/site/pack/plenary.nvim/start
|
||||||
cd ~/.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
|
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
|
- name: Install and prepare Neovim
|
||||||
env:
|
env:
|
||||||
|
|
@ -75,4 +60,4 @@ jobs:
|
||||||
nvim --headless -c "TSInstallSync all" -c "q"
|
nvim --headless -c "TSInstallSync all" -c "q"
|
||||||
|
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: PATH=~/.cargo/bin:$PATH ./scripts/run_tests.sh
|
run: PATH=/usr/local/bin:$PATH ./scripts/run_tests.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue