-
Notifications
You must be signed in to change notification settings - Fork 59
88 lines (76 loc) · 1.89 KB
/
test.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
name: Test
# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- '**.h'
- '**.mq?'
- .github/workflows/test.yml
- src/*.mq?
- src/*.mq[45h]
- src/include/**
push:
paths:
- '**.h'
- '**.mq?'
- .github/workflows/test.yml
- src/*.mq?
- src/*.mq[45h]
- src/include/**
jobs:
Compile:
defaults:
run:
shell: powershell
working-directory: src
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
submodules: recursive
- name: List MQL files
run: '(Get-ChildItem -Recurse -Path . -Include *.mq[45]).fullname'
shell: powershell
- name: Compiles EA (MQL4)
uses: fx31337/mql-compile-action@master
with:
path: src\EA31337-Libre.mq4
verbose: true
- name: Compiles EA (MQL5)
uses: fx31337/mql-compile-action@master
with:
path: src\EA31337-Libre.mq5
verbose: true
- name: List compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: EA
path: 'src/*.ex?'
Test:
defaults:
run:
shell: bash
needs: Compile
runs-on: ubuntu-latest
strategy:
matrix:
month: [1, 2]
year: [2020]
steps:
- uses: actions/download-artifact@v2
with:
name: EA
- name: Test ${{ matrix.year }}.${{ matrix.month }}
uses: fx31337/mql-tester-action@master
with:
BtDeposit: 10000
BtDigits: 5
BtMonths: ${{ matrix.month }}
BtYears: ${{ matrix.year }}
RunOnError: 'show_logs && parse_results $@; exit 0'
TestExpert: EA31337-Libre
TestPeriod: M1