Skip to content

Commit

Permalink
only lint changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 committed Jun 29, 2024
1 parent 39fb1da commit 4b8b99e
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/lua_linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,31 @@ name: lint

on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "lua/**"
types: [opened, synchronize]
workflow_call:

# partially taken from wiremod/wire/master/.github/workflows/lint.yml
jobs:
lua-lint:
uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master
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
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
run: |
./glualint ${{ steps.changed-files.outputs.all_changed_files }}

0 comments on commit 4b8b99e

Please sign in to comment.