ci: fix devlopment shell #27
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
name: test | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Neovim | |
shell: bash | |
run: | | |
mkdir -p /tmp/nvim | |
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage | |
cd /tmp/nvim | |
chmod a+x ./nvim.appimage | |
./nvim.appimage --appimage-extract | |
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH | |
- name: Run Tests | |
run: | | |
nvim --version | |
[ ! -d tests ] && exit 0 | |
tests/./run | |
stylua: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Lix | |
uses: DeterminateSystems/nix-installer-action@main | |
with: | |
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux | |
logger: pretty | |
diagnostic-endpoint: "" | |
- name: Run stylua | |
run: nix run nixpkgs#stylua -- -c . | |
selene: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Lix | |
uses: DeterminateSystems/nix-installer-action@main | |
with: | |
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux | |
logger: pretty | |
diagnostic-endpoint: "" | |
- name: Run selene | |
run: nix run nixpkgs#selene |