From 533b638a044fe2d9c082e089deaff49059f9e513 Mon Sep 17 00:00:00 2001 From: Adrian Kierzkowski Date: Mon, 9 Sep 2024 18:38:37 +0200 Subject: [PATCH] GitHub workflow changes to avoid testing if "MT5_LOGIN" env variable wasn't specified. --- .github/workflows/test-exchange-account.yml | 4 ++-- .github/workflows/test-exchange-symbolinfo.yml | 4 ++-- .github/workflows/test-exchange.yml | 4 ++-- .github/workflows/test-indicator.yml | 4 ++-- .github/workflows/test-indicators-bitwise.yml | 4 ++-- .github/workflows/test-indicators-ohlc.yml | 4 ++-- .github/workflows/test-indicators-oscillator.yml | 4 ++-- .github/workflows/test-indicators-price.yml | 4 ++-- .github/workflows/test-indicators-pricemulti.yml | 4 ++-- .github/workflows/test-indicators-pricerange.yml | 4 ++-- .github/workflows/test-indicators-special.yml | 4 ++-- .github/workflows/test-indicators-tick.yml | 4 ++-- .github/workflows/test-indicators.yml | 4 ++-- .github/workflows/test-math.yml | 4 ++-- .github/workflows/test-platform-chart.yml | 4 ++-- .github/workflows/test-platform-chart3d.yml | 4 ++-- .github/workflows/test-platform-web.yml | 4 ++-- .github/workflows/test-platform.yml | 4 ++-- .github/workflows/test-serializer.yml | 4 ++-- .github/workflows/test-storage-cache.yml | 4 ++-- .github/workflows/test-storage-dict-buffer.yml | 4 ++-- .github/workflows/test-storage-dict.yml | 4 ++-- .github/workflows/test-storage.yml | 4 ++-- .github/workflows/test-task.yml | 4 ++-- .github/workflows/test-trade.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 26 files changed, 52 insertions(+), 52 deletions(-) diff --git a/.github/workflows/test-exchange-account.yml b/.github/workflows/test-exchange-account.yml index e744eb477..703da38d8 100644 --- a/.github/workflows/test-exchange-account.yml +++ b/.github/workflows/test-exchange-account.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-exchange-symbolinfo.yml b/.github/workflows/test-exchange-symbolinfo.yml index abff9c520..cd5789bb2 100644 --- a/.github/workflows/test-exchange-symbolinfo.yml +++ b/.github/workflows/test-exchange-symbolinfo.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-exchange.yml b/.github/workflows/test-exchange.yml index 687f9f64e..0e322dc48 100644 --- a/.github/workflows/test-exchange.yml +++ b/.github/workflows/test-exchange.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicator.yml b/.github/workflows/test-indicator.yml index b63474d19..5e4873b2e 100644 --- a/.github/workflows/test-indicator.yml +++ b/.github/workflows/test-indicator.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicators-bitwise.yml b/.github/workflows/test-indicators-bitwise.yml index 0c5120453..856729525 100644 --- a/.github/workflows/test-indicators-bitwise.yml +++ b/.github/workflows/test-indicators-bitwise.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicators-ohlc.yml b/.github/workflows/test-indicators-ohlc.yml index e4d460531..64d951b42 100644 --- a/.github/workflows/test-indicators-ohlc.yml +++ b/.github/workflows/test-indicators-ohlc.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicators-oscillator.yml b/.github/workflows/test-indicators-oscillator.yml index 00cebf5a4..86f21848d 100644 --- a/.github/workflows/test-indicators-oscillator.yml +++ b/.github/workflows/test-indicators-oscillator.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicators-price.yml b/.github/workflows/test-indicators-price.yml index 7b1f10c9a..da03a6094 100644 --- a/.github/workflows/test-indicators-price.yml +++ b/.github/workflows/test-indicators-price.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicators-pricemulti.yml b/.github/workflows/test-indicators-pricemulti.yml index 6fc3ba07d..127351c10 100644 --- a/.github/workflows/test-indicators-pricemulti.yml +++ b/.github/workflows/test-indicators-pricemulti.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicators-pricerange.yml b/.github/workflows/test-indicators-pricerange.yml index 9eb06538e..d00f4201e 100644 --- a/.github/workflows/test-indicators-pricerange.yml +++ b/.github/workflows/test-indicators-pricerange.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicators-special.yml b/.github/workflows/test-indicators-special.yml index 343f0a0dd..90da297b1 100644 --- a/.github/workflows/test-indicators-special.yml +++ b/.github/workflows/test-indicators-special.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicators-tick.yml b/.github/workflows/test-indicators-tick.yml index 0f6a73fc7..3fdb3bb33 100644 --- a/.github/workflows/test-indicators-tick.yml +++ b/.github/workflows/test-indicators-tick.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-indicators.yml b/.github/workflows/test-indicators.yml index 197e194ee..fd5d3b02b 100644 --- a/.github/workflows/test-indicators.yml +++ b/.github/workflows/test-indicators.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-math.yml b/.github/workflows/test-math.yml index 3fb74e360..e49dbe67c 100644 --- a/.github/workflows/test-math.yml +++ b/.github/workflows/test-math.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-platform-chart.yml b/.github/workflows/test-platform-chart.yml index c589b98be..6ba310aaa 100644 --- a/.github/workflows/test-platform-chart.yml +++ b/.github/workflows/test-platform-chart.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-platform-chart3d.yml b/.github/workflows/test-platform-chart3d.yml index ac884c48e..823a69dc3 100644 --- a/.github/workflows/test-platform-chart3d.yml +++ b/.github/workflows/test-platform-chart3d.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-platform-web.yml b/.github/workflows/test-platform-web.yml index 484e6364a..b6b0a089b 100644 --- a/.github/workflows/test-platform-web.yml +++ b/.github/workflows/test-platform-web.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-platform.yml b/.github/workflows/test-platform.yml index 351e4bbb6..4c39326c8 100644 --- a/.github/workflows/test-platform.yml +++ b/.github/workflows/test-platform.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-serializer.yml b/.github/workflows/test-serializer.yml index baa6b5271..e3e129df9 100644 --- a/.github/workflows/test-serializer.yml +++ b/.github/workflows/test-serializer.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-storage-cache.yml b/.github/workflows/test-storage-cache.yml index 7cc26b719..79836795b 100644 --- a/.github/workflows/test-storage-cache.yml +++ b/.github/workflows/test-storage-cache.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-storage-dict-buffer.yml b/.github/workflows/test-storage-dict-buffer.yml index b71dbf9ce..1825e7e05 100644 --- a/.github/workflows/test-storage-dict-buffer.yml +++ b/.github/workflows/test-storage-dict-buffer.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-storage-dict.yml b/.github/workflows/test-storage-dict.yml index 43ba26b56..742f19147 100644 --- a/.github/workflows/test-storage-dict.yml +++ b/.github/workflows/test-storage-dict.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-storage.yml b/.github/workflows/test-storage.yml index 8dd65e4e3..26f17542d 100644 --- a/.github/workflows/test-storage.yml +++ b/.github/workflows/test-storage.yml @@ -3,7 +3,7 @@ name: Test Storage env: TEST_PATH: Storage/tests - TEST_SKIP: ${{ secrets.MT5_LOGIN || false }} + TEST_SKIP: ${{ secrets.MT5_LOGIN == '' }} # yamllint disable-line rule:truthy on: @@ -52,7 +52,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: diff --git a/.github/workflows/test-task.yml b/.github/workflows/test-task.yml index bfe1a617c..73b748dbb 100644 --- a/.github/workflows/test-task.yml +++ b/.github/workflows/test-task.yml @@ -3,7 +3,7 @@ name: Test Task env: TEST_PATH: Task/tests - TEST_SKIP: ${{ secrets.MT5_LOGIN || false }} + TEST_SKIP: ${{ secrets.MT5_LOGIN == '' }} # yamllint disable-line rule:truthy on: @@ -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: diff --git a/.github/workflows/test-trade.yml b/.github/workflows/test-trade.yml index f40545dd7..f3c1457c3 100644 --- a/.github/workflows/test-trade.yml +++ b/.github/workflows/test-trade.yml @@ -3,7 +3,7 @@ name: Test Trade env: TEST_PATH: Trade/tests - TEST_SKIP: ${{ secrets.MT5_LOGIN || false }} + TEST_SKIP: ${{ secrets.MT5_LOGIN == '' }} # yamllint disable-line rule:truthy on: @@ -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: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2cf0179c2..8352272dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ name: Test env: TEST_PATH: tests - TEST_SKIP: ${{ secrets.MT5_LOGIN || false }} + TEST_SKIP: ${{ secrets.MT5_LOGIN == '' }} # yamllint disable-line rule:truthy on: @@ -58,7 +58,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: