Skip to content

Commit

Permalink
Workflows for validate and lint (KAT-Advanced-Medical#266)
Browse files Browse the repository at this point in the history
* workflows
  • Loading branch information
MiszczuZPolski authored Feb 26, 2023
1 parent 58c1389 commit ed654a0
Show file tree
Hide file tree
Showing 24 changed files with 1,683 additions and 1,457 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
* text=auto
*.png binary
*.jpg binary
*.paa binary

# Change GitHub language categorization
addons/**/*.cpp linguist-language=SQF
addons/**/*.hpp linguist-language=SQF

optionals/**/*.cpp linguist-language=SQF
optionals/**/*.hpp linguist-language=SQF

# Do not count hemtt includes in language usage stats
include/* linguist-vendored
31 changes: 31 additions & 0 deletions .github/workflows/arma.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Arma

on:
push:
branches:
- master
pull_request:

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@master
- name: Validate SQF
run: python3 tools/sqf_validator.py
- name: Validate Config
run: python3 tools/config_style_checker.py
- name: Validate Stringtables
run: python3 tools/stringtable_validator.py
- name: Check Strings
run: python3 tools/check_strings.py

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@master
- name: Lint (sqflint)
uses: arma-actions/sqflint@master
continue-on-error: true # No failure due to many false-positives
91 changes: 0 additions & 91 deletions Makefile

This file was deleted.

Loading

0 comments on commit ed654a0

Please sign in to comment.