-
Notifications
You must be signed in to change notification settings - Fork 103
34 lines (28 loc) · 852 Bytes
/
lua_linter.yaml
File metadata and controls
34 lines (28 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: lint
on:
pull_request:
paths:
- "lua/**"
types: [opened, synchronize]
workflow_call:
# partially taken from wiremod/wire/master/.github/workflows/lint.yml
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Get any changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
**.lua
- name: Download GluaFixer
if: steps.changed-files.outputs.any_changed
run: |
curl -o glualint.zip -L https://github.com/FPtje/GLuaFixer/releases/download/1.28.0/glualint-1.28.0-x86_64-linux.zip
unzip glualint.zip
- name: Lint Code
if: steps.changed-files.outputs.any_changed
run: |
./glualint ${{ steps.changed-files.outputs.all_changed_files }}