mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:30:04 +08:00
38 lines
771 B
YAML
Vendored
38 lines
771 B
YAML
Vendored
name: lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run luacheck
|
|
uses: lunarmodules/luacheck@v0
|
|
with:
|
|
args: lua/* test/*
|
|
|
|
- name: Run selene
|
|
uses: NTBBloodbath/selene-action@v1.0.0
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
args: --display-style=quiet .
|
|
|
|
style-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Lint with stylua
|
|
uses: JohnnyMorganz/stylua-action@1.0.0
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
# CLI arguments
|
|
args: --check .
|