This commit is contained in:
33
.gitea/workflows/tests.yml
Normal file
33
.gitea/workflows/tests.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Neovim AppImage
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
arch="$(uname -m)"
|
||||||
|
if [ "${arch}" = "aarch64" ]; then
|
||||||
|
appimage="nvim-linux-arm64.appimage"
|
||||||
|
else
|
||||||
|
appimage="nvim-linux-x86_64.appimage"
|
||||||
|
fi
|
||||||
|
url="https://github.com/neovim/neovim/releases/download/stable/${appimage}"
|
||||||
|
curl -L "${url}" -o "${appimage}"
|
||||||
|
chmod +x "${appimage}"
|
||||||
|
./${appimage} --appimage-extract
|
||||||
|
sudo install -m 0755 ./squashfs-root/usr/bin/nvim /usr/local/bin/nvim
|
||||||
|
|
||||||
|
- name: Neovim Version
|
||||||
|
run: nvim --version
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
run: bash run_test.sh
|
||||||
Reference in New Issue
Block a user