-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (53 loc) · 1.56 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on: [push, pull_request]
jobs:
hemtt:
name: Build with HEMTT
runs-on: windows-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Build with HEMTT
uses: gruppe-adler/[email protected]
id: build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ steps.build.outputs.zip_name }}
path: ${{ steps.build.outputs.release_path }}
sqfvalidator:
name: Validate with ACE3's SQF-Validator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
wget https://raw.githubusercontent.com/acemod/ACE3/c8812e093a366187355b8581bb0da83197cd6f95/tools/sqf_validator.py
sed -i '117d' sqf_validator.py
sed -i '116d' sqf_validator.py
sed -i '115d' sqf_validator.py
- name: Validate
run: |
python3 sqf_validator.py
sqflint:
name: Lint with SQFLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install SQFLint
run: |
python -m pip install --upgrade pip
python -m pip install https://github.com/jokoho48/sqf/archive/39c93cdb8fee84236f2766a006cd66fae8acce17.tar.gz
- name: Lint
run: |
sqflint -d . -e w