Common tree highlight groups #420
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "**" ] | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- id: branch-name | |
uses: tj-actions/branch-names@v6 | |
- 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: Clone nordic.nvim (PR) | |
if: github.event_name == 'pull_request' | |
run: | | |
mkdir -p ~/.local/share/nvim/site/pack/ci/start/ | |
git clone --branch ${{ steps.branch-name.outputs.current_branch }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} ~/.local/share/nvim/site/pack/ci/start/nordic.nvim; | |
- name: Clone nordic.nvim (Push) | |
if: github.event_name == 'push' | |
run: | | |
mkdir -p ~/.local/share/nvim/site/pack/ci/start/ | |
git clone --branch ${{ steps.branch-name.outputs.current_branch }} https://github.com/${GITHUB_REPOSITORY} ~/.local/share/nvim/site/pack/ci/start/nordic.nvim; | |
- name: Test nordic.nvim | |
shell: bash | |
run: | | |
nvim --version | |
OUTPUT=$(nvim --headless -c "lua require('nordic.tests').run_tests()" -c 'q' 2>&1); | |
if [[ -n "$OUTPUT" ]] | |
then | |
echo "::error title='Checks failed'::$OUTPUT" && exit 1 | |
fi |