Add Arma CI Workflow (validate, lint, build) (#7207)

* No sqflint failures for now due to false-positives
* Upload artifact of armake build
* Cleanup Circle CI configuration
* Add BOM check
* Cleanup BOM
This commit is contained in:
jonpas 2019-10-05 22:53:16 +02:00 committed by GitHub
parent cec15a6f1a
commit 5a5d4758a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 125 additions and 118 deletions

45
.github/workflows/arma.yml vendored Normal file
View File

@ -0,0 +1,45 @@
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 String Tables
run: python3 tools/check_strings.py
- name: Check for BOM
uses: arma-actions/bom-check@master
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
build:
runs-on: ubuntu-latest
container: acemod/armake:master
steps:
- name: Checkout the source code
uses: actions/checkout@master
- name: Build (armake)
run: armake --version && make -j4
- name: Upload Artifact
uses: actions/upload-artifact@master
with:
name: ace3-${{ github.sha }}-nobin
path: '@ace'

View File

@ -1,36 +1,5 @@
version: 2 version: 2
jobs: jobs:
validate-scripts:
docker:
- image: acemod/sqflint:latest
steps:
- checkout
- run:
name: Validate SQF and Config style and Stringtable entries
command: python tools/sqf_validator.py && python tools/config_style_checker.py && python tools/check_strings.py
linting:
docker:
- image: acemod/sqflint:latest
steps:
- checkout
- run:
name: Lint sqf code
command: sqflint -d addons || true
armake:
docker:
- image: acemod/armake:master
steps:
- checkout
- run:
name: Version
command: armake --version
- run:
name: Build
command: |
make -j 4
update-docs: update-docs:
docker: docker:
- image: acemod/armake:latest - image: acemod/armake:latest
@ -49,14 +18,7 @@ workflows:
version: 2 version: 2
build-job: build-job:
jobs: jobs:
- linting
- validate-scripts
- armake:
requires:
- validate-scripts
- update-docs: - update-docs:
requires:
- armake
filters: filters:
branches: branches:
only: master only: master

View File

@ -1,4 +1,4 @@
--- ---
layout: wiki layout: wiki
title: M47 Dragon Missile title: M47 Dragon Missile
description: M47 Dragon description: M47 Dragon

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import fnmatch import fnmatch
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import fnmatch import fnmatch
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import fnmatch import fnmatch
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# Requires: https://github.com/LordGolias/sqf # Requires: https://github.com/LordGolias/sqf