diff --git a/.github/workflows/test-account.yml b/.github/workflows/test-account.yml index 3ac99f1f5..e9f5aff12 100644 --- a/.github/workflows/test-account.yml +++ b/.github/workflows/test-account.yml @@ -14,36 +14,20 @@ on: 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' + compile: + name: Compile + uses: ./.github/workflows/compile.yml + with: + artifact_prefix: mt + skip_cleanup: true Account-Tests-MQL4: defaults: run: shell: bash working-directory: Account/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/test-buffer.yml b/.github/workflows/test-buffer.yml index bf23d92e7..441677f22 100644 --- a/.github/workflows/test-buffer.yml +++ b/.github/workflows/test-buffer.yml @@ -14,36 +14,20 @@ on: jobs: - Compile: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Compile - uses: fx31337/mql-compile-action@master - with: - init-platform: true - path: 'Buffer/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' + compile: + name: Compile + uses: ./.github/workflows/compile.yml + with: + artifact_prefix: mt + skip_cleanup: true Buffer-Tests-MQL4: defaults: run: shell: bash working-directory: Buffer/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/test-indicators-special.yml b/.github/workflows/test-indicators-special.yml index 6e3cfc6e0..95764a543 100644 --- a/.github/workflows/test-indicators-special.yml +++ b/.github/workflows/test-indicators-special.yml @@ -16,36 +16,20 @@ on: jobs: - Compile: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Compile - uses: fx31337/mql-compile-action@master - with: - init-platform: true - path: 'Indicators/Special/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' + compile: + name: Compile + uses: ./.github/workflows/compile.yml + with: + artifact_prefix: mt + skip_cleanup: true Indicators-Tests-MQL4: defaults: run: shell: bash working-directory: Indicators/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/test-indicators-tick.yml b/.github/workflows/test-indicators-tick.yml index 25eabe43c..5553a41a4 100644 --- a/.github/workflows/test-indicators-tick.yml +++ b/.github/workflows/test-indicators-tick.yml @@ -16,36 +16,20 @@ on: jobs: - Compile: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Compile - uses: fx31337/mql-compile-action@master - with: - init-platform: true - path: 'Indicators/Tick/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' + compile: + name: Compile + uses: ./.github/workflows/compile.yml + with: + artifact_prefix: mt + skip_cleanup: true Indicators-Tests-MQL4: defaults: run: shell: bash working-directory: Indicators/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/test-indicators.yml b/.github/workflows/test-indicators.yml index 081413a3d..6c794d8e4 100644 --- a/.github/workflows/test-indicators.yml +++ b/.github/workflows/test-indicators.yml @@ -16,36 +16,20 @@ on: jobs: - Compile: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Compile - uses: fx31337/mql-compile-action@master - with: - init-platform: true - path: 'Indicators/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' + compile: + name: Compile + uses: ./.github/workflows/compile.yml + with: + artifact_prefix: mt + skip_cleanup: true Indicators-Tests-MQL4: defaults: run: shell: bash working-directory: Indicators/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/test-tick.yml b/.github/workflows/test-tick.yml index 941fe371a..37fa2c019 100644 --- a/.github/workflows/test-tick.yml +++ b/.github/workflows/test-tick.yml @@ -14,35 +14,20 @@ on: jobs: - Compile: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Compile - uses: fx31337/mql-compile-action@master - with: - path: 'Tick/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' + compile: + name: Compile + uses: ./.github/workflows/compile.yml + with: + artifact_prefix: mt + skip_cleanup: true Tick-Tests-MQL4: defaults: run: shell: bash working-directory: Tick/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/test-trade.yml b/.github/workflows/test-trade.yml index 4ab779efd..a6dea035d 100644 --- a/.github/workflows/test-trade.yml +++ b/.github/workflows/test-trade.yml @@ -14,36 +14,20 @@ on: jobs: - Compile: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Compile - uses: fx31337/mql-compile-action@master - with: - init-platform: true - path: 'Trade/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' + compile: + name: Compile + uses: ./.github/workflows/compile.yml + with: + artifact_prefix: mt + skip_cleanup: true Trade-Tests-MQL4: defaults: run: shell: bash working-directory: Trade/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14b3e9dd7..0906e11aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,6 +32,7 @@ jobs: run: shell: bash working-directory: tests + if: false needs: compile runs-on: ubuntu-latest strategy: @@ -73,7 +74,7 @@ jobs: BtDays: 1-8 BtMonths: 1 BtYears: 2020 - MtVersion: 4.0.0.1349 + Version: 4 TestExpert: ${{ matrix.test }} timeout-minutes: 10 @@ -82,7 +83,8 @@ jobs: run: shell: bash working-directory: tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: @@ -118,7 +120,8 @@ jobs: run: shell: bash working-directory: tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: @@ -143,7 +146,8 @@ jobs: run: shell: bash working-directory: Trade/tests - needs: Compile + if: false + needs: compile runs-on: ubuntu-latest strategy: matrix: