forked from ThePrimeagen/git-worktree.nvim
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brian Ryall
committed
Dec 28, 2023
1 parent
69d9e21
commit 96fdc1b
Showing
4 changed files
with
57 additions
and
362 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,57 +1,38 @@ | ||
name: Tests | ||
name: test | ||
|
||
on: [push, pull_request] | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
x64-ubuntu: | ||
name: X64-ubuntu | ||
runs-on: ubuntu-20.04 | ||
test: | ||
name: Run Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: date +%F > todays-date | ||
- name: Restore cache for today's nightly. | ||
uses: actions/cache@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: rhysd/action-setup-vim@v1 | ||
id: vim | ||
with: | ||
path: | | ||
_neovim | ||
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }} | ||
neovim: true | ||
version: nightly | ||
|
||
- name: Prepare | ||
run: | | ||
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 | ||
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start | ||
- 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 | ||
- name: luajit | ||
uses: leafo/gh-actions-lua@v10 | ||
with: | ||
path: | | ||
build | ||
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }} | ||
luaVersion: "luajit-2.1.0-beta3" | ||
|
||
- name: luarocks | ||
uses: leafo/gh-actions-luarocks@v4 | ||
|
||
- name: Prepare | ||
- name: build | ||
run: | | ||
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 | ||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim | ||
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start | ||
- name: Run tests | ||
luarocks install plenary | ||
- name: run test | ||
shell: bash | ||
run: | | ||
export PATH="${PWD}/build/:${PATH}" | ||
make test | ||
luarocks install luacheck | ||
luarocks install vusted | ||
vusted ./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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
.zshrc.bak | ||
.direnv | ||
.pre-commit-config.yaml | ||
/luarocks | ||
/lua_modules | ||
/.luarocks |
Oops, something went wrong.