diff --git a/.github/actions/compilerfunctionaltests/action.yaml b/.github/actions/compilerfunctionaltests/action.yaml index 286ef9e6..8039750e 100644 --- a/.github/actions/compilerfunctionaltests/action.yaml +++ b/.github/actions/compilerfunctionaltests/action.yaml @@ -7,18 +7,25 @@ inputs: build_platform: description: 'Build platform' required: true + shell: + description: 'Shell to use for run steps' + required: true + default: 'pwsh' runs: using: 'composite' steps: - name: Clean solution for functional tests run: dotnet clean src/compiler/Restler.Compiler.Test/Restler.Compiler.Test.fsproj -c ${{ inputs.build_configuration }} + shell: ${{ inputs.shell }} - name: Build functional tests run: dotnet build src/compiler/Restler.Compiler.Test/Restler.Compiler.Test.fsproj --no-restore -c ${{ inputs.build_configuration }} + shell: ${{ inputs.shell }} - name: Run functional tests run: dotnet test src/compiler/Restler.Compiler.Test/Restler.Compiler.Test.fsproj -c ${{ inputs.build_configuration }} --no-build --logger "trx;LogFileName=test_results.trx" + shell: ${{ inputs.shell }} - name: Publish test results if: always() diff --git a/.github/actions/restlerfullbuild/action.yaml b/.github/actions/restlerfullbuild/action.yaml index c06dd316..2eb1b757 100644 --- a/.github/actions/restlerfullbuild/action.yaml +++ b/.github/actions/restlerfullbuild/action.yaml @@ -10,6 +10,10 @@ inputs: build_platform: description: 'Build platform' required: true + shell: + description: 'Shell to use for run steps' + required: true + default: 'pwsh' runs: using: 'composite' @@ -26,15 +30,19 @@ runs: - name: Restore NuGet packages run: nuget restore **\Restler.sln + shell: ${{ inputs.shell }} - name: Clean solution run: dotnet clean src/compiler/Restler.CompilerExe/Restler.CompilerExe.fsproj src/driver/Restler.Driver.fsproj src/ResultsAnalyzer/ResultsAnalyzer.fsproj -c ${{ inputs.build_configuration }} + shell: ${{ inputs.shell }} - name: Publish RESTler dotnet core projects run: dotnet publish src/compiler/Restler.CompilerExe/Restler.CompilerExe.fsproj src/driver/Restler.Driver.fsproj src/ResultsAnalyzer/ResultsAnalyzer.fsproj --no-restore -c ${{ inputs.build_configuration }} /p:version=${{ inputs.version_number }} /p:Platform=${{ inputs.build_platform }} + shell: ${{ inputs.shell }} - name: Build unit tests run: dotnet build src/compiler/Restler.Compiler.Test/Restler.Compiler.Test.fsproj --no-restore -c ${{ inputs.build_configuration }} + shell: ${{ inputs.shell }} - name: Set up Python 3.8 uses: actions/setup-python@v2