diff --git a/tests/action.yaml b/tests/action.yaml index f78c699..f85079a 100644 --- a/tests/action.yaml +++ b/tests/action.yaml @@ -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: | @@ -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: