forked from windwp/nvim-ts-autotag
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert 14e1f22 'ci: use self-hosted runner'
- Loading branch information
1 parent
4096aff
commit 539e384
Showing
3 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,39 @@ | ||
name: Tests | ||
|
||
on: [push, pull_request, workflow_call] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
x64-ubuntu: | ||
name: nix-runner | ||
runs-on: self-hosted | ||
name: X64-ubuntu | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-24.04 | ||
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz | ||
manager: sudo apt-get | ||
packages: -y fd-find tree-sitter-cli | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v3 | ||
- run: date +%F > todays-date | ||
- name: Restore cache for today's nightly. | ||
uses: actions/cache@v3 | ||
with: | ||
path: _neovim | ||
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }} | ||
|
||
- name: Prepare | ||
run: | | ||
${{ matrix.manager }} update | ||
${{ matrix.manager }} install ${{ matrix.packages }} | ||
test -d _neovim || { | ||
mkdir -p _neovim | ||
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim" | ||
} | ||
- name: Run tests | ||
run: make test | ||
run: | | ||
export PATH="${PWD}/_neovim/bin:${PATH}" | ||
export VIMRUNTIME="${PWD}/_neovim/share/nvim/runtime" | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters