Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev-task' into dev-v2012
Browse files Browse the repository at this point in the history
* origin/dev-task: (44 commits)
  Added TaskManager::Add(string _entry) method which creates TaskEntry from JSON string.
  EA: Adds test for task init
  EA: Reenables initial task logic
  Trade: Integrates TaskManager logic
  CompileTest: Adds missing Task includes
  EA/Strategy: Integrates taskable actions
  Task: Adds struct methods for arguments
  EA: Integrates TaskManager logic with Task's conditions
  Strategy: Renames tsm to tasks
  Task: Fixes TaskCondition test
  GHA: Includes testing on .mq? changes
  Task: Fixes TaskAction test
  Strategy: Integrates TaskManager logic with Task's conditions
  Fixed DictObjectIterator's value pointer's cast. Fixed TaskEntry::Get()'s switch. Made tasks dictionary to store references to Task type.
  Task/TaskObject: Adds support for objects
  Task: Adds TaskManager
  Task: Improves processing methods
  Task: Adds TaskObject
  Task.test: Adds TestTask01()
  Task/Task: Adds missing virtual methods
  ...
  • Loading branch information
kenorb committed Jan 27, 2022
2 parents 66d435a + 263f521 commit d1f9af0
Show file tree
Hide file tree
Showing 63 changed files with 3,651 additions and 1,913 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/test-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
name: Test Task

# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- 'Task/**'
- '.github/workflows/test-task.yml'
push:
paths:
- 'Task/**'
- '.github/workflows/test-task.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: 'Task/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'

Task-Tests-MQL4:
defaults:
run:
shell: bash
working-directory: Task/tests
needs: Compile
runs-on: ubuntu-latest
strategy:
matrix:
test:
- Task.test
- TaskAction.test
- TaskCondition.test
- TaskGetter.test
- TaskManager.test
- TaskObject.test
- TaskSetter.test
- Taskable.car.test
- Taskable.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 }}
2 changes: 2 additions & 0 deletions .github/workflows/test-trade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
pull_request:
paths:
- 'Trade/**.h'
- 'Trade/**.mq?'
- '.github/workflows/test-trade.yml'
push:
paths:
- 'Trade/**.h'
- 'Trade/**.mq?'
- '.github/workflows/test-trade.yml'

jobs:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ jobs:
matrix:
test:
- AccountTest
- ActionTest
- BufferStructTest
- BufferTest
- ChartTest
- CompileIndicatorsTest
- ConditionTest
- DatabaseTest
- DrawIndicatorTest
- EATest
Expand All @@ -76,7 +74,6 @@ jobs:
- StrategyTest-RSI
- SymbolInfoTest
- SummaryReportTest
- TaskTest
- TickerTest
- TradeTest
steps:
Expand Down
Loading

0 comments on commit d1f9af0

Please sign in to comment.