Skip to content

Commit

Permalink
Run .NET Core tests on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mqudsi committed Apr 27, 2024
1 parent cc1cd50 commit d2595cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ on:
jobs:
build:

runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.dotnet.os }}

strategy:
matrix:
os: [ windows-latest ]
dotnet: [
{ version: '2', tfm: 'net20' },
{ version: '4', tfm: 'net40' },
{ version: '6', tfm: 'net6.0' },
{ version: '8', tfm: 'net8.0' },
{ os: 'windows-latest', version: '2', tfm: 'net20' },
{ os: 'windows-latest', version: '4', tfm: 'net40' },
{ os: 'ubuntu-latest', version: '6', tfm: 'net6.0' },
{ os: 'ubuntu-latest', version: '8', tfm: 'net8.0' },
]

steps:
Expand All @@ -39,4 +39,4 @@ jobs:
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 --verbosity normal -p:TargetFrameworks="${{ matrix.dotnet.tfm }}" -p:LangVersion="latest"
if: endsWith(matrix.dotnet.tfm, '.0') # only for .NET core
if: matrix.dotnet.tfm == 'net8.0' # only for .NET 8 because we are using collection literals

0 comments on commit d2595cd

Please sign in to comment.