Skip to content

Commit

Permalink
try custom image for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Sep 7, 2024
1 parent 6458b8c commit 6b7c2d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
- os: ubuntu-latest
rev: v0.10.0/nvim.appimage
steps:
- uses: actions/checkout@v4
Expand All @@ -27,8 +27,8 @@ jobs:
key: ${{ runner.os }}-${{ matrix.rev }}

- name: Prepare dependencies
run: | # TODO: Cache apt dependencies
sudo apt-get update && sudo apt-get install -y libfuse2
run: |
sudo apt-get update && sudo apt-get install -y fuse
./scripts/tests.sh prepare ${{ matrix.rev }}
- name: Run tests
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Used for running tests in CI
FROM ubuntu:latest

RUN apt-get update && apt-get upgrade -y && apt-get install -y libfuse2 curl git kmod linux-generic
RUN depmod -a
RUN modprobe fuse
1 change: 0 additions & 1 deletion scripts/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ NVIM_DL_BASE="https://github.com/neovim/neovim/releases/download/"

prepare() {
local version=$1

if [[ ! -f _neovim/nvim ]] && [[ -n $version ]]; then
mkdir -p _neovim && curl -sL -o _neovim/nvim "${NVIM_DL_BASE}${version}" && chmod +x _neovim/nvim
_neovim/nvim --headless -c 'TSInstallSync lua | quit'
Expand Down

0 comments on commit 6b7c2d9

Please sign in to comment.