This action runs sqflint on your code.
By default the program is run with following arguments:
--exit e
- return 1 and exit on error--directory addons
- lint code inaddons
directory
# main.yml
name: CI
on:
push:
branches:
- master
pull_request: ~
jobs:
test-sqflint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: arma-actions/[email protected]
name: Validate with SQFLint
If you want to customize the arguments given to sqflint
binary you can do this by specifying the arguments in jobs.<job>.steps.with.args
. This will remove default arguments from sqflint.
# main.yml
jobs:
test-sqflint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: arma-actions/[email protected]
name: Validate with SQFLint with custom arguments
with:
args: --exit w --directory Missionframework