-
Notifications
You must be signed in to change notification settings - Fork 62
55 lines (46 loc) · 1.36 KB
/
validateTestBuild.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: Validate Test Build
on:
push:
branches-ignore: [master, development]
pull_request:
branches-ignore: master
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout the source code
uses: actions/checkout@master
- name: Validate Config
run: python3 tools/SQF-validate/config_style_checker.py
- name: Check for BOM
uses: arma-actions/bom-check@master
with:
path: 'src'
test:
runs-on: windows-latest
timeout-minutes: 5
steps:
- name: Checkout the code
uses: actions/checkout@master
- name: Validate SQF with SQF-VM
run: |
cd src
New-Item .\config\user_local_config.hpp -ItemType File
..\tools\SQF-VM\sqfvm.exe -a --no-execute-print --disable-macro-warnings --load . -i D:\a\Vindicta\Vindicta\src\Tests\RunTests.sqf
build:
runs-on: windows-latest
timeout-minutes: 5
needs: [validate, test]
steps:
- uses: actions/checkout@master
- name: Checkout the source code
uses: actions/checkout@master
- name: Build Missions
run: '.\tools\Builder\buildMissions.ps1 -verPatch ${{ github.run_number }}'
- name: Build addons
run: '.\tools\Builder\buildAddons.ps1'
- uses: actions/upload-artifact@v1
with:
name: MissionFiles
path: _build\missions\separatePBO