Skip to content

Commit

Permalink
remove outdated e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries committed May 21, 2024
1 parent b6d9774 commit 03f0dca
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 187 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,62 +64,3 @@ jobs:
run: |
nvim --version
nvim -l scripts/test.lua
e2e_tests:
name: e2e tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
rev: nightly/nvim-linux64.tar.gz
- os: ubuntu-22.04
rev: v0.9.0/nvim-linux64.tar.gz
- os: macos-latest
rev: nightly/nvim-macos.tar.gz
steps:
- uses: actions/checkout@v3
- run: date +%F > todays-date
- name: Restore from todays cache
uses: actions/cache@v3
with:
path: _neovim
key: ${{ runner.os }}-${{ matrix.rev }}-${{ hashFiles('todays-date') }}

- name: Cache rust items
uses: actions/cache@v3
with:
path: |
~/.rustup/
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- 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
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
echo "${PWD}/_neovim/bin:${PATH}" >> $GITHUB_PATH
echo VIM="${PWD}/_neovim/share/nvim/runtime" >> $GITHUB_ENV
- name: Run build scripts
run: |
nvim -u scripts/init.lua -l build/init.lua
- name: Run tests
run: |
nvim --version
nvim -l scripts/e2e_test.lua
env:
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN }}
SG_NVIM_E2E: true
119 changes: 0 additions & 119 deletions lua/tests/e2e/e2e_spec.lua

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/e2e_test.lua

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/init.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
vim.env.SG_NVIM_TESTING = "true"

vim.env.SRC_ENDPOINT = "https://sourcegraph.sourcegraph.com"

-- when outside of github actions set the token to a fake token
if vim.env.SG_NVIM_E2E ~= "true" then
vim.env.SRC_ACCESS_TOKEN = "testing-token-doesnt-work"
end

vim.opt.rtp:append { ".", "../plenary.nvim", "../tree-sitter-lua" }

vim.cmd [[runtime! plugin/plenary.vim]]
Expand Down

0 comments on commit 03f0dca

Please sign in to comment.