Skip to content

Commit

Permalink
Added prettier config and added fixed dubble testing (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom authored Jul 9, 2024
1 parent cd91d85 commit a01250a
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 41 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.sqf]
indent_style = space
indent_size = 4

[*.yml]
indent_size = 2
1 change: 1 addition & 0 deletions .github/workflows/create_artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Create Artifacts
on: workflow_dispatch

jobs:
build:
name: Create And Upload Releases
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Deploy Release
on:
release:
types: [ published ]
types: [published]

jobs:
build:
name: Create And Upload Release
Expand Down Expand Up @@ -37,7 +38,6 @@ jobs:
asset_name: cScripts_Debug-${{github.ref_name}}.zip
file: release/cScripts_Debug-${{github.ref_name}}.zip


- name: Upload release (cScripts_NoRadio)
uses: svenstaro/upload-release-action@v2
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/deploy_artifacts_main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Deploy DevBuild Artifacts
on:
push:
branches:
- main
branches:
- main

jobs:
build:
name: Create And Upload Releases
Expand All @@ -18,4 +19,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: cScripts_DevBuilds
path: release/*
path: release/*
7 changes: 4 additions & 3 deletions .github/workflows/deploy_artifacts_tag.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Deploy Tag Artifacts
on:
push:
tags:
- '*'
tags:
- "*"

jobs:
build:
name: Create And Upload Releases
Expand All @@ -18,4 +19,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: cScripts_Releases
path: release/*
path: release/*
70 changes: 37 additions & 33 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
name: Testing
on: [push, pull_request]
on:
pull_request:
push:
branches: main

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: 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

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@master
- name: Lint (sqflint)
uses: arma-actions/sqflint@master
with:
args: --exit e --directory cScripts/functions
continue-on-error: true # No failure due to many false-positives
- name: Checkout the source code
uses: actions/checkout@master
- name: Lint (sqflint)
uses: arma-actions/sqflint@master
with:
args: --exit e --directory cScripts/functions
continue-on-error: true # No failure due to many false-positives

testing:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@master
- name: Check DEBUG_MODE
if: always()
run: bash tools/checkDebug.sh
- name: Check TODO
if: always()
run: bash tools/checkTodo.sh
continue-on-error: true
- name: Check for FIXME
if: always()
run: bash tools/checkFixme.sh
- name: Check for LOGGING
if: always()
run: bash tools/checkLogging.sh
- name: Check Pull Request Name
if: always()
run: bash tools/checkPullRequestTitle.sh ${{ github.event.pull_request.title }}
- name: Checkout the source code
uses: actions/checkout@master
- name: Check DEBUG_MODE
if: always()
run: bash tools/checkDebug.sh
- name: Check TODO
if: always()
run: bash tools/checkTodo.sh
continue-on-error: true
- name: Check for FIXME
if: always()
run: bash tools/checkFixme.sh
- name: Check for LOGGING
if: always()
run: bash tools/checkLogging.sh
- name: Check Pull Request Name
if: always()
run: bash tools/checkPullRequestTitle.sh ${{ github.event.pull_request.title }}

0 comments on commit a01250a

Please sign in to comment.