Skip to content

Adding CORECLR Cross-Platform support to ECDH-ES #246

Adding CORECLR Cross-Platform support to ECDH-ES

Adding CORECLR Cross-Platform support to ECDH-ES #246

Workflow file for this run

name: BuildAndTestFunctions
on:
push:
pull_request:
branches:
- master
jobs:
build-test-nix:
name: Build and test .NET Core
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # we want to see list of failing tests for each combination
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
framework: ['netcoreapp3.1', 'netcoreapp2.1', 'net50', 'net80']
exclude:
- os: macos-latest
framework: 'netcoreapp2.1'
- os: macos-latest
framework: 'netcoreapp3.1'
- os: macos-latest
framework: 'net50'
steps:
- name: Check out code onto host
uses: actions/checkout@v1
- name: Setup .Net 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.x' # SDK Version to use.
- name: Setup .Net 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x' # SDK Version to use.
- name: Setup .Net 5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x' # SDK Version to use.
- name: Setup .Net 8.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x' # SDK Version to use.
- name: Dotnet info
run: |
dotnet --version
dotnet --info
- name: Clear nuget cache
# Workaround for https://github.com/actions/setup-dotnet/issues/155
run: |
dotnet clean jose-jwt.sln
dotnet nuget locals all --clear
- name: Run unit tests
run: |
dotnet test jose-jwt.sln --framework=${{ matrix.framework }}
build-test-netfx:
name: Build and test .NET Framework
runs-on: [windows-2019]
strategy:
fail-fast: false # we want to see list of failing tests for each combination
matrix:
framework: ['net40', 'net46', 'net47']
steps:
- name: Check out code onto host
uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Setup NuGet
uses: nuget/setup-nuget@v1
with:
nuget-version: '6.x'
- name: Nuget Restore jose-jwt-${{ matrix.framework }}
continue-on-error: true
run: nuget restore jose-jwt-${{ matrix.framework }}.sln
- name: MSBuild jose-jwt-${{ matrix.framework }}
continue-on-error: true
run: msbuild jose-jwt-${{ matrix.framework }}.sln /t:rebuild /v:detailed /p:Configuration=Release
# - name: Install NUnit.ConsoleRunner
# if: matrix.framework == 'net40'
# run: nuget install NUnit.ConsoleRunner -Version 3.15.0 -DirectDownload -OutputDirectory .
# - name: Run UnitTestsNet40
# if: matrix.framework == 'net40'
# run: .\NUnit.ConsoleRunner.3.15.0\tools\nunit3-console.exe UnitTestsNet40\bin\Release\UnitTestsNet40.dll
- name: Install xunit.runner.console
if: ${{ matrix.framework == 'net46' || matrix.framework == 'net47' }}
run: nuget install xunit.runner.console -Version 2.2.0-beta4-build3444 -DirectDownload -OutputDirectory .
- name: Run UnitTestsNet46
if: ${{ matrix.framework == 'net46' || matrix.framework == 'net47' }}
run: .\xunit.runner.console.2.2.0-beta4-build3444\tools\xunit.console.exe UnitTestsNet46\bin\Release\UnitTestsNet46.dll