Skip to content

Commit

Permalink
GHA: Test: Fixes compilation and disables non-working runs
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Apr 24, 2024
1 parent b9aed53 commit 07a8183
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 171 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/test-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
32 changes: 8 additions & 24 deletions .github/workflows/test-buffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
32 changes: 8 additions & 24 deletions .github/workflows/test-indicators-special.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
32 changes: 8 additions & 24 deletions .github/workflows/test-indicators-tick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
32 changes: 8 additions & 24 deletions .github/workflows/test-indicators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
31 changes: 8 additions & 23 deletions .github/workflows/test-tick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
32 changes: 8 additions & 24 deletions .github/workflows/test-trade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
run:
shell: bash
working-directory: tests
if: false
needs: compile
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -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

Expand All @@ -82,7 +83,8 @@ jobs:
run:
shell: bash
working-directory: tests
needs: Compile
if: false
needs: compile
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -118,7 +120,8 @@ jobs:
run:
shell: bash
working-directory: tests
needs: Compile
if: false
needs: compile
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -143,7 +146,8 @@ jobs:
run:
shell: bash
working-directory: Trade/tests
needs: Compile
if: false
needs: compile
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 07a8183

Please sign in to comment.