Skip to content

Merge pull request #1611 from NeogitOrg/revert-1599-revert-hunk #3548

Merge pull request #1611 from NeogitOrg/revert-1599-revert-hunk

Merge pull request #1611 from NeogitOrg/revert-1599-revert-hunk #3548

Workflow file for this run

name: Linting
on:
pull_request:
push:
branches:
- "master"
jobs:
code_quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: selene,typos-cli
- name: Run linters
run: make lint
code_style:
name: Code Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --color always --check lua/ tests/
ruby_lint:
name: Rubocop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rubocop
lua_types:
name: lua-typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Homebrew/actions/setup-homebrew@master
- uses: luarocks/gh-actions-lua@v10
with:
luaVersion: luajit
- uses: luarocks/gh-actions-luarocks@v5
- run: |
HOMEBREW_NO_INSTALL_CLEANUP=1 brew install lua-language-server
luarocks install llscheck
llscheck lua/