chore: Remove sqls and sqlls #31
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: | |
| lint: | |
| name: Lint Lua Code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| 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: Install luacheck | |
| run: luarocks install luacheck | |
| - name: Run luacheck | |
| run: luacheck . | |
| stylua: | |
| name: Check Formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Stylua | |
| uses: JohnnyMorganz/stylua-action@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: latest | |
| args: --check . | |
| test-neovim: | |
| name: Test Neovim Config | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| nvim_version: ["stable", "nightly"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Neovim | |
| uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: ${{ matrix.nvim_version }} | |
| - name: Test config loads | |
| run: | | |
| nvim --version | |
| nvim --headless -c "quit" 2>&1 | tee /tmp/nvim-test.log | |
| if grep -i "error" /tmp/nvim-test.log; then | |
| echo "Config has errors!" | |
| exit 1 | |
| fi | |
| test-wezterm: | |
| name: Test WezTerm Config | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install WezTerm (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| curl -fsSL https://apt.fury.io/wez/gpg.key | sudo gpg --yes --dearmor -o /usr/share/keyrings/wezterm-fury.gpg | |
| echo 'deb [signed-by=/usr/share/keyrings/wezterm-fury.gpg] https://apt.fury.io/wez/ * *' | sudo tee /etc/apt/sources.list.d/wezterm.list | |
| sudo apt update | |
| sudo apt install -y wezterm | |
| - name: Install WezTerm (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: brew install --cask wezterm | |
| - name: Test WezTerm config | |
| run: | | |
| mkdir -p ~/.config/wezterm | |
| ln -sf ${{ github.workspace }}/wezterm.lua ~/.config/wezterm/wezterm.lua | |
| wezterm --version | |
| wezterm ls-fonts 2>&1 | tee /tmp/wezterm-test.log | |
| if grep -i "error" /tmp/wezterm-test.log; then | |
| echo "WezTerm config has errors!" | |
| exit 1 | |
| fi |