template.nvim/.gitea/workflows/qs.yml
Snoweuph 4121d31b96
All checks were successful
Quality Check / Quality Checks (push) Successful in 6s
setup
2024-07-03 02:51:01 +02:00

23 lines
631 B
YAML

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