mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2025-12-06 06:46:10 +00:00
chore: rewrite ci (#1236)
no appimage ubuntu and mac os release and nightly
This commit is contained in:
77
.github/workflows/ci.yml
vendored
77
.github/workflows/ci.yml
vendored
@@ -3,54 +3,45 @@ name: Tests
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
x64-ubuntu:
|
unit_tests:
|
||||||
name: X64-ubuntu
|
name: unit tests
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: ubuntu-20.04
|
||||||
|
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
|
||||||
|
manager: sudo apt-get
|
||||||
|
packages: -y fd-find
|
||||||
|
- os: ubuntu-20.04
|
||||||
|
url: https://github.com/neovim/neovim/releases/download/v0.5.0/nvim-linux64.tar.gz
|
||||||
|
manager: sudo apt-get
|
||||||
|
packages: -y fd-find
|
||||||
|
- os: macos-10.15
|
||||||
|
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz
|
||||||
|
manager: brew
|
||||||
|
packages: fd
|
||||||
|
- os: macos-10.15
|
||||||
|
url: https://github.com/neovim/neovim/releases/download/v0.5.0/nvim-macos.tar.gz
|
||||||
|
manager: brew
|
||||||
|
packages: fd
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: date +%F > todays-date
|
- run: date +%F > todays-date
|
||||||
- name: Restore cache for today's nightly.
|
- name: Restore from todays cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: _neovim
|
||||||
_neovim
|
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}
|
||||||
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}
|
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
sudo apt install fd-find
|
${{ matrix.manager }} update
|
||||||
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
|
${{ matrix.manager }} install ${{ matrix.packages }}
|
||||||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
|
test -d _neovim || {
|
||||||
git clone --depth 1 https://github.com/kyazdani42/nvim-web-devicons ~/.local/share/nvim/site/pack/vendor/start/nvim-web-devicons
|
mkdir -p _neovim
|
||||||
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
|
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
curl -OL https://raw.githubusercontent.com/norcalli/bot-ci/master/scripts/github-actions-setup.sh
|
|
||||||
source github-actions-setup.sh nightly-x64
|
|
||||||
make test
|
|
||||||
|
|
||||||
appimage-ubuntu:
|
|
||||||
name: Appimage-ubuntu
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- run: date +%F > todays-date
|
|
||||||
- name: Restore cache for today's nightly.
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
build
|
|
||||||
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
|
|
||||||
|
|
||||||
- name: Prepare
|
|
||||||
run: |
|
|
||||||
sudo apt install fd-find
|
|
||||||
test -d build || {
|
|
||||||
mkdir -p build
|
|
||||||
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
|
|
||||||
chmod +x nvim.appimage
|
|
||||||
mv nvim.appimage ./build/nvim
|
|
||||||
}
|
}
|
||||||
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
|
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-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
|
||||||
@@ -59,5 +50,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
export PATH="${PWD}/build/:${PATH}"
|
export PATH="${PWD}/_neovim/bin:${PATH}"
|
||||||
make test
|
export VIM="${PWD}/_neovim/share/nvim/runtime"
|
||||||
|
nvim --version
|
||||||
|
make test
|
||||||
|
|||||||
24
.github/workflows/docgen.yml
vendored
24
.github/workflows/docgen.yml
vendored
@@ -8,23 +8,27 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-sources:
|
build-sources:
|
||||||
name: Generate docs
|
name: Generate docs
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: ubuntu-20.04
|
||||||
|
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: date +%F > todays-date
|
- run: date +%F > todays-date
|
||||||
- name: Restore cache for today's nightly.
|
- name: Restore cache for today's nightly.
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: build
|
path: _neovim
|
||||||
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
|
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
test -d build || {
|
test -d _neovim || {
|
||||||
mkdir -p build
|
mkdir -p _neovim
|
||||||
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
|
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
|
||||||
chmod +x nvim.appimage
|
|
||||||
mv nvim.appimage ./build/nvim
|
|
||||||
}
|
}
|
||||||
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
|
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-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
|
||||||
@@ -42,7 +46,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Generating docs
|
- name: Generating docs
|
||||||
run: |
|
run: |
|
||||||
export PATH="${PWD}/build/:${PATH}"
|
export PATH="${PWD}/_neovim/bin:${PATH}"
|
||||||
|
export VIM="${PWD}/_neovim/share/nvim/runtime"
|
||||||
|
nvim --version
|
||||||
make docgen
|
make docgen
|
||||||
|
|
||||||
# inspired by nvim-lspconfigs
|
# inspired by nvim-lspconfigs
|
||||||
|
|||||||
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install luarocks
|
sudo apt-get install -y luarocks
|
||||||
sudo luarocks install luacheck
|
sudo luarocks install luacheck
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
|
|||||||
Reference in New Issue
Block a user