build: rework ci tests to include windows (#3011)
This commit is contained in:
49
.github/workflows/ci.yml
vendored
49
.github/workflows/ci.yml
vendored
@@ -9,48 +9,33 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-22.04, macos-12, windows-2022]
|
||||
rev: [nightly, v0.9.0]
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
rev: nightly/nvim-linux64.tar.gz
|
||||
manager: sudo apt-get
|
||||
packages: -y ripgrep
|
||||
- os: ubuntu-22.04
|
||||
rev: v0.9.0/nvim-linux64.tar.gz
|
||||
manager: sudo apt-get
|
||||
packages: -y ripgrep
|
||||
install-rg: sudo apt-get update && sudo apt-get install -y ripgrep
|
||||
- os: macos-12
|
||||
rev: nightly/nvim-macos.tar.gz
|
||||
manager: brew
|
||||
packages: ripgrep
|
||||
- os: macos-12
|
||||
rev: v0.9.0/nvim-macos.tar.gz
|
||||
manager: brew
|
||||
packages: ripgrep
|
||||
install-rg: brew update && brew install ripgrep
|
||||
- os: windows-2022
|
||||
install-rg: choco install ripgrep
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: date +%F > todays-date
|
||||
- name: Restore from todays cache
|
||||
uses: actions/cache@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: rhysd/action-setup-vim@v1
|
||||
with:
|
||||
path: _neovim
|
||||
key: ${{ runner.os }}-${{ matrix.rev }}-${{ hashFiles('todays-date') }}
|
||||
neovim: true
|
||||
version: ${{ matrix.rev }}
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
${{ matrix.manager }} update
|
||||
${{ matrix.manager }} install ${{ matrix.packages }}
|
||||
test -d _neovim || {
|
||||
mkdir -p _neovim
|
||||
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
|
||||
}
|
||||
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
|
||||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
|
||||
git clone --depth 1 https://github.com/nvim-tree/nvim-web-devicons ~/.local/share/nvim/site/pack/vendor/start/nvim-web-devicons
|
||||
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
|
||||
${{ matrix.install-rg }}
|
||||
rg --version
|
||||
|
||||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ../plenary.nvim
|
||||
git clone --depth 1 https://github.com/nvim-tree/nvim-web-devicons ../nvim-web-devicons
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
export PATH="${PWD}/_neovim/bin:${PATH}"
|
||||
export VIM="${PWD}/_neovim/share/nvim/runtime"
|
||||
nvim --version
|
||||
make test
|
||||
|
||||
6
.github/workflows/docgen.yml
vendored
6
.github/workflows/docgen.yml
vendored
@@ -14,12 +14,12 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
|
||||
url: https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-linux64.tar.gz
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- run: date +%F > todays-date
|
||||
- name: Restore cache for today's nightly.
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: _neovim
|
||||
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}
|
||||
|
||||
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
||||
name: Luacheck
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
@@ -22,8 +22,8 @@ jobs:
|
||||
name: stylua
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: JohnnyMorganz/stylua-action@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: JohnnyMorganz/stylua-action@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
version: latest
|
||||
|
||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
||||
luarocks-upload:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: LuaRocks Upload
|
||||
uses: nvim-neorocks/luarocks-tag-release@v1.0.2
|
||||
env:
|
||||
@@ -15,8 +15,8 @@ jobs:
|
||||
with:
|
||||
summary: "Find, Filter, Preview, Pick. All lua, all the time."
|
||||
detailed_description: |
|
||||
A highly extendable fuzzy finder over lists.
|
||||
Built on the latest awesome features from neovim core.
|
||||
A highly extendable fuzzy finder over lists.
|
||||
Built on the latest awesome features from neovim core.
|
||||
Telescope is centered around modularity, allowing for easy customization.
|
||||
dependencies: |
|
||||
plenary.nvim
|
||||
|
||||
Reference in New Issue
Block a user