From 61fd4976f28376dc0d590cb1d14a0dd4fe70e0a2 Mon Sep 17 00:00:00 2001 From: Sabeeh Ul Hussnain Date: Wed, 4 Sep 2024 09:50:48 +0500 Subject: [PATCH] fix to use bash --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 95dbab9e..ffff27a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,12 +35,13 @@ jobs: - name: Run tests for ${{ matrix.libBuildType }} on ${{ matrix.config.target }} continue-on-error: ${{ matrix.config.continueOnError }} run: | - if [[ "$RUNNER_OS" == "Windows" ]]; then + if [ "${{ runner.os }}" == "Windows" ]; then ./gradlew mingwX64Test -PlibBuildType=${{ matrix.libBuildType }} else chmod +x ./runTests.sh ./runTests.sh ${{ matrix.libBuildType }} ${{ matrix.config.tasks }} fi + shell: bash working-directory: ${{ github.workspace }} - name: Upload test results from ksoup-test module if failure