Skip to content

Commit

Permalink
GitHub workflow changes to avoid testing if "MT5_LOGIN" env variable …
Browse files Browse the repository at this point in the history
…wasn't specified.
  • Loading branch information
nseam authored and kenorb committed Sep 9, 2024
1 parent fdb8e9b commit 6580c89
Show file tree
Hide file tree
Showing 26 changed files with 52 additions and 52 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-exchange-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test Exchange/Account

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0 comments on commit 6580c89

Please sign in to comment.