Skip to content

Commit

Permalink
CI: Do not run test if login is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Sep 8, 2024
1 parent f17541f commit 678a238
Show file tree
Hide file tree
Showing 27 changed files with 82 additions and 27 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-exchange-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Exchange/Account

env:
TEST_PATH: Exchange/Account/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -47,7 +48,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-exchange-symbolinfo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Exchange/SymbolInfo

env:
TEST_PATH: Exchange/SymbolInfo/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -45,7 +46,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-exchange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Exchange

env:
TEST_PATH: Exchange/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -47,7 +48,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicator

env:
TEST_PATH: Indicator/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -53,7 +54,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicators-bitwise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicators (Bitwise)

env:
TEST_PATH: Indicators/Bitwise/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -48,7 +49,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicators-ohlc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicators (OHLC)

env:
TEST_PATH: Indicators/OHLC/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -47,7 +48,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicators-oscillator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicators (Oscillator)

env:
TEST_PATH: Indicators/Oscillator/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -50,7 +51,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicators-price.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicators (Price)

env:
TEST_PATH: Indicators/Price/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -49,7 +50,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicators-pricemulti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicators (PriceMulti)

env:
TEST_PATH: Indicators/PriceMulti/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -47,7 +48,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicators-pricerange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicators (PriceRange)

env:
TEST_PATH: Indicators/PriceRange/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -50,7 +51,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicators-special.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicators (Special)

env:
TEST_PATH: Indicators/Special/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -48,7 +49,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicators-tick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicators (Tick)

env:
TEST_PATH: Indicators/Tick/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -47,7 +48,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-indicators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Indicators

env:
TEST_PATH: Indicators/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -97,7 +98,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-math.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Math

env:
TEST_PATH: Math/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -47,7 +48,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-platform-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Platform/Chart

env:
TEST_PATH: Platform/Chart/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -46,7 +47,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-platform-chart3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Platform/Chart3D

env:
TEST_PATH: Platform/Chart3D/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -45,7 +46,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-platform-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Platform/Web

env:
TEST_PATH: Platform/Web/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -46,7 +47,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Platform

env:
TEST_PATH: Platform/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -50,7 +51,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-serializer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Serializer

env:
TEST_PATH: Serializer/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -45,7 +46,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-storage-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Storage/Cache

env:
TEST_PATH: Storage/Cache/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -46,7 +47,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test-storage-dict-buffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Storage/Dict/Buffer

env:
TEST_PATH: Storage/Dict/Buffer/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -50,7 +51,9 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
- if: ${{ ! env.TEST_SKIP }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-storage-dict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Storage/Dict

env:
TEST_PATH: Storage/Dict/tests
TEST_SKIP: ${{ secrets.MT5_LOGIN || false }}

# yamllint disable-line rule:truthy
on:
Expand Down Expand Up @@ -45,7 +46,8 @@ jobs:
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
- if: ${{ env.TEST_SKIP != true }}
name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Login: ${{ secrets.MT5_LOGIN }}
Expand Down
Loading

0 comments on commit 678a238

Please sign in to comment.