feat: add @path mentions and multi-file patch parsing #43
Workflow file for this run
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: | |
| paths: | |
| - 'lua/**' | |
| - 'plugin/**' | |
| - 'tests/**' | |
| - '.github/workflows/**' | |
| - 'Makefile' | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| paths: | |
| - 'lua/**' | |
| - 'plugin/**' | |
| - 'tests/**' | |
| - '.github/workflows/**' | |
| - 'Makefile' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install luacheck | |
| run: sudo apt-get update && sudo apt-get install -y lua-check | |
| - name: Run luacheck | |
| run: luacheck lua/ tests/ | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check formatting with stylua | |
| uses: JohnnyMorganz/stylua-action@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: latest | |
| args: --check lua/ tests/ | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Lua | |
| uses: leafo/gh-actions-lua@v10 | |
| with: | |
| luaVersion: "5.1" | |
| - name: Setup LuaRocks | |
| uses: leafo/gh-actions-luarocks@v4 | |
| - name: Cache LuaRocks packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.luarocks | |
| key: ${{ runner.os }}-luarocks-${{ hashFiles('Makefile') }} | |
| restore-keys: | | |
| ${{ runner.os }}-luarocks- | |
| - name: Install busted | |
| run: luarocks install busted | |
| - name: Run tests | |
| run: busted tests/ |