Merge pull request #1276 from bitpredator/dependabot/github_actions/m… #4533
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| branches: [ "main", "dev" ] | |
| pull_request_target: | |
| branches: [ "*" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint Lua Resource | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Run Lua Linter | |
| uses: iLLeniumStudios/fivem-lua-lint-action@v2 | |
| with: | |
| capture: "junit.xml" | |
| args: "-t --formatter JUnit" | |
| extra_libs: mysql | |
| - name: Publish Lint Report | |
| if: always() | |
| uses: mikepenz/action-junit-report@v6 | |
| with: | |
| report_paths: "**/junit.xml" | |
| check_name: "Lua Lint Report" | |
| fail_on_failure: false |