fix(init): only run debug when build succeeded #773
This file contains hidden or 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: Main | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| - '.gitignore' | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| - '.gitignore' | |
| jobs: | |
| format: | |
| name: Format | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Clone repo | |
| uses: actions/checkout@v2 | |
| - name: Stylua | |
| uses: JohnnyMorganz/stylua-action@v3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: v0.17.1 # NOTE: we recommend pinning to a specific version in case of formatting changes | |
| args: --check -f ./stylua.toml . | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Prepare dependencies | |
| run: | | |
| mkdir -p _neovim | |
| curl -sL https://github.com/neovim/neovim/releases/download/v0.9.0/nvim-linux64.tar.gz | tar xzf - --strip-components=1 -C "${PWD}/_neovim" | |
| - name: Run tests | |
| run: | | |
| export PATH="${PWD}/_neovim/bin:${PATH}" | |
| nvim --version | |
| make test |