From 4239aeb0800696505ec0ebd727dc4832c2d5958b Mon Sep 17 00:00:00 2001 From: Kakarot <57848836+GhzGarage@users.noreply.github.com> Date: Fri, 6 May 2022 21:46:02 -0500 Subject: [PATCH 1/2] Create lint.yml --- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..c800181 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Lint +on: [push, pull_request] +jobs: + lint: + name: Lint Resource + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Lint + uses: iLLeniumStudios/fivem-lua-lint-action@v1.0.11 + with: + capture: "junit.xml" + args: "-t --formatter JUnit" + extra_libs: mysql + - name: Generate Lint Report + if: always() + uses: mikepenz/action-junit-report@v3 + with: + report_paths: "**/junit.xml" + check_name: Linting Report + fail_on_failure: false From 4dfb32db9bf603590d8c6fefd6ad832136951fb9 Mon Sep 17 00:00:00 2001 From: Kakarot <57848836+GhzGarage@users.noreply.github.com> Date: Fri, 6 May 2022 22:01:14 -0500 Subject: [PATCH 2/2] Update lint.yml --- .github/workflows/lint.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c800181..a42332d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,12 +1,13 @@ name: Lint -on: [push, pull_request] +on: [push, pull_request_target] jobs: lint: name: Lint Resource runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Lint uses: iLLeniumStudios/fivem-lua-lint-action@v1.0.11 with: