Action for LordGolias/sqflint
  • Dockerfile 71.4%
  • Shell 28.6%
Find a file
2023-09-10 05:41:28 +03:00
.github Update problems matcher syntax 2019-09-14 18:24:37 +02:00
action.yml Add branding 2019-09-14 18:48:26 +02:00
Dockerfile Новая версия sqflint 2023-09-10 05:41:28 +03:00
entrypoint.sh Output arguments in console 2019-09-12 10:15:18 +02:00
README.md Fix wrong sqflint link 2019-09-14 18:59:34 +02:00

GitHub Action for SQFLint

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 in addons directory

Example workflow

# 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/sqflint@v1.0
        name: Validate with SQFLint

Customizing arguments

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/sqflint@v1.0
        name: Validate with SQFLint with custom arguments
        with:
          args: --exit w --directory Missionframework