fix: dewoke workflow branch trigger #1
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| jobs: | |
| stylua: | |
| name: stylua | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: JohnnyMorganz/stylua-action@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: latest | |
| args: --check lua/ plugin/ tests/ | |
| luacheck: | |
| name: luacheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: leafo/gh-actions-lua@v10 | |
| with: | |
| luaVersion: "luajit-2.1.0-beta3" | |
| - uses: leafo/gh-actions-luarocks@v4 | |
| - name: Install luacheck | |
| run: luarocks install luacheck | |
| - name: Run luacheck | |
| run: luacheck lua/ plugin/ | |
| test: | |
| name: test (nvim ${{ matrix.neovim }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| neovim: [stable, nightly] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Neovim | |
| uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: ${{ matrix.neovim }} | |
| - name: Cache test deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: .test-deps | |
| key: test-deps-${{ matrix.neovim }}-${{ hashFiles('tests/minimal_init.lua') }} | |
| - name: Run headless smoke test | |
| env: | |
| OPENAPI_TEST_DEPS: ${{ github.workspace }}/.test-deps | |
| run: | | |
| nvim --headless -u tests/minimal_init.lua -l tests/smoke.lua |