Skip to content

Commit

Permalink
feat(tests): use setup-yq action
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman committed Jun 7, 2024
1 parent 5bc9a04 commit e5061c7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,20 @@ runs:
3.12
- if: ${{ steps.prepare.outputs.PACKAGES != '' }}
name: Clone mason.nvim
shell: bash
run: |
git clone https://github.com/williamboman/mason.nvim "$GITHUB_ACTION_PATH/mason.nvim"
- if: ${{ steps.prepare.outputs.PACKAGES != '' }}
name: Setup neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: v0.7.0

- if: ${{ steps.prepare.outputs.PACKAGES != '' }}
name: mason.nvim healthcheck
shell: bash
id: healthchecks
run: |
Expand All @@ -106,15 +109,11 @@ runs:
-c qa
- if: ${{ steps.prepare.outputs.PACKAGES != '' }}
shell: bash
run: |
nvim --headless \
-c "set rtp^=$GITHUB_ACTION_PATH/mason.nvim" \
-c 'lua require("mason").setup()' \
-c 'MasonInstall yq' \
-c qa
name: Install yq
uses: mason-org/actions/setup-yq@v1

- if: ${{ steps.prepare.outputs.PACKAGES != '' }}
name: Install packages
run: nvim --headless -c "luafile $GITHUB_ACTION_PATH/test-runner.lua" -c 1cq
shell: bash
env:
Expand Down

0 comments on commit e5061c7

Please sign in to comment.