fix: correct broken tool definitions (#79) #135
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: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: JohnnyMorganz/stylua-action@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: 2.0.2 | |
| args: --check . | |
| test-pip: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: nightly | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - uses: leso-kn/gh-actions-lua@master | |
| with: | |
| luaVersion: "5.1" | |
| - uses: hishamhm/gh-actions-luarocks@master | |
| - name: Install tools | |
| run: | | |
| pip install -q -r .github/tools/pip.txt | |
| luarocks install busted --local | |
| luarocks install nlua --local | |
| - name: Clone guard.nvim | |
| run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/ | |
| - name: Run tests | |
| run: | | |
| export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH" | |
| busted --lua nlua test/pip/*_spec.lua | |
| test-npm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: nightly | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - uses: leso-kn/gh-actions-lua@master | |
| with: | |
| luaVersion: "5.1" | |
| - uses: hishamhm/gh-actions-luarocks@master | |
| - name: Install tools | |
| run: | | |
| xargs npm install -g < .github/tools/npm.txt | |
| luarocks install busted --local | |
| luarocks install nlua --local | |
| - name: Clone guard.nvim | |
| run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/ | |
| - name: Run tests | |
| run: | | |
| export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH" | |
| busted --lua nlua test/npm/*_spec.lua | |
| test-go: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: nightly | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: stable | |
| cache: false | |
| - uses: leso-kn/gh-actions-lua@master | |
| with: | |
| luaVersion: "5.1" | |
| - uses: hishamhm/gh-actions-luarocks@master | |
| - name: Install tools | |
| run: | | |
| xargs -L1 go install < .github/tools/go.txt | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.64.8 | |
| luarocks install busted --local | |
| luarocks install nlua --local | |
| - name: Clone guard.nvim | |
| run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/ | |
| - name: Run tests | |
| run: | | |
| export PATH="$HOME/go/bin:$PATH" | |
| export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH" | |
| busted --lua nlua test/go/*_spec.lua | |
| test-rust: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: nightly | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rustfmt | |
| - uses: leso-kn/gh-actions-lua@master | |
| with: | |
| luaVersion: "5.1" | |
| - uses: hishamhm/gh-actions-luarocks@master | |
| - name: Install test tools | |
| run: | | |
| luarocks install busted --local | |
| luarocks install nlua --local | |
| - name: Clone guard.nvim | |
| run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/ | |
| - name: Run tests | |
| run: | | |
| export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH" | |
| busted --lua nlua test/rust/*_spec.lua | |
| test-lua: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: nightly | |
| - uses: leso-kn/gh-actions-lua@master | |
| with: | |
| luaVersion: "5.1" | |
| - uses: hishamhm/gh-actions-luarocks@master | |
| - name: Install tools | |
| run: | | |
| luarocks install busted --local | |
| luarocks install nlua --local | |
| luarocks install luacheck --local | |
| bash .github/scripts/install-binary-tools.sh "$HOME/.local/bin" .github/tools/lua-binary.txt | |
| - name: Clone guard.nvim | |
| run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/ | |
| - name: Run tests | |
| run: | | |
| export PATH="$HOME/.local/bin:$PATH" | |
| export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH" | |
| busted --lua nlua test/lua/*_spec.lua | |
| test-binary: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: nightly | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - uses: leso-kn/gh-actions-lua@master | |
| with: | |
| luaVersion: "5.1" | |
| - uses: hishamhm/gh-actions-luarocks@master | |
| - name: Install tools | |
| run: | | |
| sudo apt-get install -y zsh shellcheck | |
| luarocks install busted --local | |
| luarocks install nlua --local | |
| bash .github/scripts/install-binary-tools.sh "$HOME/.local/bin" | |
| - name: Clone guard.nvim | |
| run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/ | |
| - name: Run tests | |
| run: | | |
| export PATH="$HOME/.local/bin:$PATH" | |
| export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH" | |
| busted --lua nlua test/binary/*_spec.lua | |
| test-apt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: nightly | |
| - uses: leso-kn/gh-actions-lua@master | |
| with: | |
| luaVersion: "5.1" | |
| - uses: hishamhm/gh-actions-luarocks@master | |
| - name: Install tools | |
| run: | | |
| xargs sudo apt-get install -y < .github/tools/apt.txt | |
| luarocks install busted --local | |
| luarocks install nlua --local | |
| - name: Clone guard.nvim | |
| run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/ | |
| - name: Run tests | |
| run: | | |
| export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH" | |
| busted --lua nlua test/apt/*_spec.lua | |
| test-dotnet: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: nightly | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0' | |
| - uses: leso-kn/gh-actions-lua@master | |
| with: | |
| luaVersion: "5.1" | |
| - uses: hishamhm/gh-actions-luarocks@master | |
| - name: Install tools | |
| run: | | |
| dotnet tool install -g csharpier | |
| luarocks install busted --local | |
| luarocks install nlua --local | |
| - name: Clone guard.nvim | |
| run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/ | |
| - name: Run tests | |
| run: | | |
| export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH" | |
| busted --lua nlua test/dotnet/*_spec.lua | |
| test-ruby: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rhysd/action-setup-vim@v1 | |
| with: | |
| neovim: true | |
| version: nightly | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| - uses: leso-kn/gh-actions-lua@master | |
| with: | |
| luaVersion: "5.1" | |
| - uses: hishamhm/gh-actions-luarocks@master | |
| - name: Install tools | |
| run: | | |
| gem install rubocop bundler | |
| luarocks install busted --local | |
| luarocks install nlua --local | |
| - name: Setup rubocop Gemfile | |
| run: | | |
| mkdir -p /tmp/rubocop-test | |
| printf "source 'https://rubygems.org'\ngem 'rubocop'\n" > /tmp/rubocop-test/Gemfile | |
| cd /tmp/rubocop-test && bundle install | |
| - name: Clone guard.nvim | |
| run: git clone --depth 1 https://github.com/nvimdev/guard.nvim && mv guard.nvim/lua/guard lua/ | |
| - name: Run tests | |
| run: | | |
| export LUA_PATH="lua/?.lua;lua/?/init.lua;$LUA_PATH" | |
| busted --lua nlua test/ruby/*_spec.lua | |