Skip to content

Commit

Permalink
fix shell
Browse files Browse the repository at this point in the history
  • Loading branch information
marina-p committed Dec 9, 2024
1 parent 416f969 commit e772b93
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/compilerfunctionaltests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
8 changes: 8 additions & 0 deletions .github/actions/restlerfullbuild/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit e772b93

Please sign in to comment.