Skip to content

Commit

Permalink
ci: switch to vusted for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ryall committed Dec 28, 2023
1 parent fdd0a09 commit 3ebddeb
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 362 deletions.
75 changes: 28 additions & 47 deletions .github/workflows/ci.yml
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
4 changes: 0 additions & 4 deletions .gitignore
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
Loading

0 comments on commit 3ebddeb

Please sign in to comment.