forked from EA31337/EA31337-classes
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (58 loc) · 1.43 KB
/
test-account.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
---
name: Test Account
# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- 'Account/**.h'
- '.github/workflows/test-account.yml'
push:
paths:
- 'Account/**.h'
- '.github/workflows/test-account.yml'
jobs:
Compile:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Compile
uses: fx31337/mql-compile-action@master
with:
init-platform: true
path: 'Account/tests'
verbose: true
- name: Print compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
shell: powershell
- name: Upload artifacts (MQL4)
uses: actions/upload-artifact@v2
with:
name: files-ex4
path: '**/*.ex4'
- name: Upload artifacts (MQL5)
uses: actions/upload-artifact@v2
with:
name: files-ex5
path: '**/*.ex5'
Account-Tests-MQL4:
defaults:
run:
shell: bash
working-directory: Account/tests
needs: Compile
runs-on: ubuntu-latest
strategy:
matrix:
test:
- Account.test
- AccountForex.test
- AccountMt.test
steps:
- uses: actions/download-artifact@v2
with:
name: files-ex4
- name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Script: ${{ matrix.test }}
timeout-minutes: 10