Repository navigation
feat: 複数行コメントの対象範囲を表示する (#237) #638
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: [main] | |
| pull_request: | |
| branches: [main] | |
| 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 | |
| - name: Install luacheck | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y luarocks | |
| sudo luarocks install luacheck | |
| - name: Run luacheck | |
| run: luacheck lua/ plugin/ tests/ | |
| tests: | |
| name: Tests (Neovim ${{ matrix.nvim_version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| nvim_version: | |
| - v0.10.4 | |
| - v0.11.7 | |
| - stable | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Neovim | |
| run: | | |
| curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.nvim_version }}/nvim-linux-x86_64.appimage" -o nvim.appimage | |
| chmod +x nvim.appimage | |
| sudo mkdir -p /opt/nvim | |
| ./nvim.appimage --appimage-extract > /dev/null | |
| sudo ln -sf "$(pwd)/squashfs-root/AppRun" /usr/bin/nvim | |
| - name: Run tests | |
| run: | | |
| nvim --version | |
| bash run_tests.sh | |
| check-state-deps: | |
| name: State Dependencies Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Neovim | |
| run: | | |
| curl -sL "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage" -o nvim.appimage | |
| chmod +x nvim.appimage | |
| sudo mkdir -p /opt/nvim | |
| ./nvim.appimage --appimage-extract > /dev/null | |
| sudo ln -sf "$(pwd)/squashfs-root/AppRun" /usr/bin/nvim | |
| - name: Run check-state-deps | |
| run: | | |
| nvim --version | |
| make check-state-deps | |
| check-purity: | |
| name: Purity Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Neovim | |
| run: | | |
| curl -sL "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage" -o nvim.appimage | |
| chmod +x nvim.appimage | |
| sudo mkdir -p /opt/nvim | |
| ./nvim.appimage --appimage-extract > /dev/null | |
| sudo ln -sf "$(pwd)/squashfs-root/AppRun" /usr/bin/nvim | |
| - name: Run check-purity | |
| run: | | |
| nvim --version | |
| make check-purity | |
| check-docs: | |
| name: Docs Cross-Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Neovim | |
| run: | | |
| curl -sL "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage" -o nvim.appimage | |
| chmod +x nvim.appimage | |
| sudo mkdir -p /opt/nvim | |
| ./nvim.appimage --appimage-extract > /dev/null | |
| sudo ln -sf "$(pwd)/squashfs-root/AppRun" /usr/bin/nvim | |
| - name: Run check-docs | |
| run: | | |
| nvim --version | |
| make check-docs | |
| coverage: | |
| name: Test Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Neovim | |
| run: | | |
| curl -sL "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage" -o nvim.appimage | |
| chmod +x nvim.appimage | |
| sudo mkdir -p /opt/nvim | |
| ./nvim.appimage --appimage-extract > /dev/null | |
| sudo ln -sf "$(pwd)/squashfs-root/AppRun" /usr/bin/nvim | |
| - name: Install luarocks and luacov | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y luarocks | |
| sudo luarocks install luacov | |
| - name: Run coverage | |
| run: | | |
| nvim --version | |
| make coverage | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: | | |
| luacov.report.out | |
| luacov.stats.out | |
| if-no-files-found: error | |
| retention-days: 30 |