Skip to content

Commit

Permalink
Use correct endsWith() expression
Browse files Browse the repository at this point in the history
It *seems* like this combined with the bracketed indexer notation might work.
  • Loading branch information
mqudsi committed Apr 27, 2024
1 parent abb7c32 commit 4c5028c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
id: stepid
with:
dotnet-version: ${{ matrix.dotnet.version }}
if: ${{ startsWith(matrix['dotnet']['tfm'], 'net.') }} # only for .NET core
if: endsWith(matrix['dotnet']['tfm'], '.0') # only for .NET core
# By default, tests will be executed under the latest installed version!
- name: Create temporary global.json
if: ${{ matrix.net.tfm == 'net8.0' }} # only for .NET core
if: endsWith(matrix['dotnet']['tfm'], '.0') # only for .NET core
run: echo '{"sdk":{"version":"${{steps.stepid.outputs.dotnet-version}}"}}' > ./global.json
- name: Restore packages
run: dotnet restore UrlBase64/UrlBase64.csproj -p:Configuration=Release -p:TargetFrameworks="${{ matrix.dotnet.tfm }}" -p:LangVersion="latest" --verbosity normal
- name: Build solution
run: dotnet build UrlBase64/UrlBase64.csproj -p:Configuration=Release -p:TargetFrameworks="${{ matrix.dotnet.tfm }}" -p:LangVersion="latest" --verbosity normal
- name: Run tests
run: dotnet test -p:Configuration=Release --no-build --verbosity normal -p:TargetFrameworks="${{ matrix.dotnet.tfm }}" -p:LangVersion="latest"
if: startsWith(matrix.dotnet.tfm, 'net.') # only for .NET core
if: endsWith(matrix.dotnet.tfm, '.0') # only for .NET core

0 comments on commit 4c5028c

Please sign in to comment.