Skip to content

Commit 7ef385c

Browse files
committed
Fix run-tests action
1 parent e63473f commit 7ef385c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/actions/run-tests/action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,30 @@ runs:
7575

7676
# Make sure only the desired dotnet version is set both as target and as active SDK.
7777
- name: Tweak target frameworks
78+
shell: bash
7879
run: |
7980
find . -name '*.csproj' | xargs -I {} sed -E -i 's|<TargetFrameworks(.*)>.*</TargetFrameworks>|<TargetFramework\1>${CLR_VERSION}</TargetFramework>|' {}
8081
find . -name '*.csproj' | xargs cat
8182
jq -n --arg version ${{inputs.dotnet-version}} '{"sdk":{"version":$version,"rollForward":"latestMinor"}}' > global.json
8283
- name: Check .NET version
84+
shell: bash
8385
run: dotnet --version
8486
- name: Check .NET SDKs
87+
shell: bash
8588
run: dotnet --list-sdks
8689
- name: Check .NET runtimes
90+
shell: bash
8791
run: dotnet --list-runtimes
8892
- name: Restore dependencies
93+
shell: bash
8994
run: dotnet restore
9095

9196
- name: Build
97+
shell: bash
9298
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
9399

94100
- name: Test
101+
shell: bash
95102
run: |
96103
echo "${{inputs.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/${CLR_VERSION}/redis_ca.pem
97104
echo "${{inputs.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/${CLR_VERSION}/redis_user.crt
@@ -102,11 +109,13 @@ runs:
102109
with:
103110
verbose: true
104111
- name: Build
112+
shell: bash
105113
run: dotnet pack -c Release
106114

107-
- name: Test against Nuget package from local source
115+
- name: Test against Nuget package from local source
108116
if: inputs.verify-nuget-package == 'true'
109117
working-directory: PackageVerification
118+
shell: bash
110119
run: |
111120
mkdir -p test-source
112121
dotnet nuget add source $(readlink -f test-source) -n test-source

0 commit comments

Comments
 (0)