Fix json output #62
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: Neotest-go GitHub Actions | |
on: | |
[pull_request, workflow_dispatch] | |
jobs: | |
check-formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out PR branch | |
uses: actions/checkout@v3 | |
- name: Check formatting | |
uses: JohnnyMorganz/stylua-action@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: latest # NOTE: we recommend pinning to a specific version in case of formatting changes | |
args: --check . | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out PR branch | |
uses: actions/checkout@v3 | |
- name: Set up nvim | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
- name: Prepare dependencies | |
run: | | |
mkdir -p ~/.local/share/nvim/site/pack/vendor/start | |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim | |
git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter ~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter | |
git clone --depth 1 https://github.com/nvim-neotest/neotest.git ~/.local/share/nvim/site/pack/vendor/start/neotest | |
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start | |
nvim --headless -c 'TSInstallSync lua go | quit' | |
- name: Run tests | |
run: | | |
nvim --version | |
nvim --headless -c ':PlenaryBustedDirectory lua/spec' | |