Skip to content

ci: use gh action to install asdf #40

ci: use gh action to install asdf

ci: use gh action to install asdf #40

Workflow file for this run

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 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