Skip to content

arma-actions/sqflint

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/[email protected]
        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/[email protected]
        name: Validate with SQFLint with custom arguments
        with:
          args: --exit w --directory Missionframework