ci: asdf add stylua plugin #41
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: CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'doc/**' | |
- 'README.md' | |
- 'DEVELOP.md' | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install asdf | |
# https://github.com/asdf-vm/actions | |
uses: asdf-vm/actions/setup@v3 | |
- name: Install stylua | |
run: | | |
asdf plugin add stylua | |
asdf install stylua | |
- name: Run stylua check | |
run: make testfmt | |
- name: Install Neovim | |
run: | | |
# Install Neovim as per instructions in: | |
# https://github.com/neovim/neovim/blob/master/INSTALL.md#pre-built-archives-2 | |
curl -LO https://github.com/neovim/neovim/releases/download/v0.10.1/nvim-linux64.tar.gz | |
rm -rf /opt/nvim | |
mkdir -p /opt | |
tar -C /opt -xzf nvim-linux64.tar.gz | |
# Add the nvim binary to the system's path. | |
echo /opt/nvim-linux64/bin >> ${GITHUB_PATH} | |
- name: Run tests | |
run: | | |
nvim --version | |
make test | |
# --- | |
# Full list of packages installed on ubuntu-latest: | |
# https://gist.github.com/stevecondylios/fc6fd259af75a2545bfece930e24f57f |