2021-07-19 18:22:49 +02:00
|
|
|
name: lint
|
2022-03-10 09:54:38 +01:00
|
|
|
|
2021-07-19 18:22:49 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-09-09 18:53:21 +02:00
|
|
|
- "rolling"
|
2022-04-02 12:22:32 +02:00
|
|
|
paths:
|
|
|
|
- 'lua/**'
|
|
|
|
- 'snapshots/**'
|
|
|
|
- 'tests/**'
|
|
|
|
- 'utils/**'
|
2021-07-19 18:22:49 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lua-linter:
|
|
|
|
name: "Linting with luacheck"
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-09-09 18:53:21 +02:00
|
|
|
|
2021-07-19 18:22:49 +02:00
|
|
|
- uses: leafo/gh-actions-lua@v8
|
|
|
|
- uses: leafo/gh-actions-luarocks@v4
|
|
|
|
|
|
|
|
- name: Use luacheck
|
|
|
|
run: luarocks install luacheck
|
2021-09-09 18:53:21 +02:00
|
|
|
|
2021-07-19 18:22:49 +02:00
|
|
|
- name: Run luacheck
|
2021-09-09 18:53:21 +02:00
|
|
|
run: make lint-lua
|
2021-08-13 12:11:18 +02:00
|
|
|
|
|
|
|
shellcheck:
|
|
|
|
name: Shellcheck
|
|
|
|
runs-on: ubuntu-latest
|
2021-07-19 18:22:49 +02:00
|
|
|
steps:
|
2021-09-09 18:53:21 +02:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run ShellCheck
|
|
|
|
uses: ludeeus/action-shellcheck@master
|
|
|
|
with:
|
|
|
|
scandir: "./utils"
|
|
|
|
ignore: "bin"
|