Skip to content

Commit ea8224a

Browse files
committed
CI: Corrects Test workflow
1 parent 25ffa2a commit ea8224a

File tree

1 file changed

+35
-60
lines changed

1 file changed

+35
-60
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,58 @@
11
---
2-
name: Backtest
2+
name: Test
33

44
# yamllint disable-line rule:truthy
55
on:
66
pull_request:
77
branches:
88
- 'master'
9-
- 'dev*'
9+
- '*dev*'
1010
paths-ignore:
1111
- '*.md'
1212
push:
1313
branches:
1414
- 'master'
15-
- 'dev*'
15+
- '*dev*'
1616
paths-ignore:
1717
- '*.md'
1818

1919
jobs:
20-
Compile:
21-
defaults:
22-
run:
23-
shell: powershell
24-
runs-on: windows-latest
25-
steps:
26-
- uses: actions/checkout@v2
27-
- uses: actions/checkout@v2
28-
with:
29-
path: Include/EA31337-classes
30-
ref: v3.000.2
31-
repository: EA31337/EA31337-classes
32-
- name: Compile for MQL4
33-
uses: fx31337/mql-compile-action@master
34-
with:
35-
include: .
36-
init-platform: true
37-
mt-version: 5.0.0.2361
38-
path: Stg_ZigZag.mq4
39-
verbose: true
40-
- name: Compile for MQL5
41-
uses: fx31337/mql-compile-action@master
42-
with:
43-
include: .
44-
mt-version: 5.0.0.2515
45-
path: Stg_ZigZag.mq5
46-
verbose: true
47-
- name: List compiled files
48-
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
49-
- run: Get-Location
50-
- name: Upload artifacts
51-
uses: actions/upload-artifact@v2
52-
with:
53-
name: EA
54-
path: '*.ex[45]'
55-
Test:
56-
needs: Compile
20+
21+
compile:
22+
name: Compile
23+
uses: ./.github/workflows/compile.yml
24+
25+
test:
26+
name: Test
27+
needs: compile
5728
runs-on: ubuntu-latest
5829
strategy:
5930
matrix:
60-
month: [1]
61-
year: [2019, 2020]
31+
file:
32+
- Stg_ZigZag
33+
year: [2022, 2024]
34+
version: [5]
6235
steps:
63-
- uses: actions/download-artifact@v2
36+
- uses: actions/download-artifact@v4
6437
with:
65-
name: EA
66-
- name: Run strategy
67-
uses: ea31337/mql-tester-action@master
38+
merge-multiple: true
39+
pattern: Strategy-ex${{ matrix.version }}
40+
41+
- name: List compiled files
42+
run: find . -name '*.ex?' -type f -print
43+
44+
- name: Test ${{ matrix.year }}
45+
uses: fx31337/mql-tester-action@master
6846
with:
69-
BtDeposit: 100000
70-
BtDest: ${{ github.workspace }}/_results
71-
BtMonths: ${{ matrix.month }}
72-
BtYears: ${{ matrix.year }}
73-
OptFormatBrief: true
74-
OptFormatJson: true
75-
OptVerbose: true
76-
TestExpert: "Stg_ZigZag"
47+
Login: ${{ secrets.MT5_LOGIN }}
48+
Password: ${{ secrets.MT5_PASSWORD }}
49+
Server: MetaQuotes-Demo
50+
TestDeposit: 2000
51+
TestExpert: ${{ matrix.file }}.ex5
52+
TestFromDate: ${{ matrix.year }}.01.01
7753
TestPeriod: M1
78-
TestReportName: Report-${{ matrix.year }}-${{ matrix.month }}
79-
- name: Upload results
80-
uses: actions/upload-artifact@v2
81-
with:
82-
name: results
83-
path: ${{ github.workspace }}/_results/*.*
54+
TestSymbol: EURUSD
55+
TestToDate: ${{ matrix.year }}.01.14
56+
# yamllint disable-line rule:line-length
57+
UrlExpert: file://${{ github.workspace }}/${{ matrix.file }}.ex5
58+
Version: 5

0 commit comments

Comments
 (0)