template.nvim/.gitea/workflows/qs.yml

24 lines
631 B
YAML
Raw Permalink Normal View History

2024-07-02 23:10:09 +00:00
name: "Quality Check"
on:
- push
- pull_request
jobs:
qs:
name: "Quality Checks"
runs-on: "ubuntu-latest"
container:
image: "git.euph.dev/actions/runner-lua-5.3:latest"
steps:
- name: "Checkout"
uses: "https://git.euph.dev/actions/checkout@v3"
- name: "Linting"
run: stylua --check lua
- name: "Static Analysis"
run: |
status=$(lua-language-server --logpath="./log" --chechklevel=Error --check lua/)
if ! echo "$status" | grep -qF "Diagnosis completed, no problems found"; then
cat ./log/check.json | jq && exit 1
fi