Skip to content

Update test targets #293

Update test targets

Update test targets #293

Workflow file for this run

name: .NET CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0' # all
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Setup gitversion
run: dotnet tool install --global GitVersion.Tool
- name: Calculate version
id: calc_version
run: |
GITVERSION=$(dotnet-gitversion /output json /showvariable FullSemVer)
echo "::set-output name=PROJECT_VERSION::$GITVERSION"
- name: Restore packages
run: dotnet restore DynamicExpresso.sln
- name: Build
run: dotnet build DynamicExpresso.sln --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}}
- name: Test .net core 8.0
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net8.0
- name: Test .net core 9.0
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net9.0
test-win:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore packages
run: dotnet restore DynamicExpresso.sln
- name: Build
run: dotnet build DynamicExpresso.sln --no-restore -c Release
- name: Test .net 4.6.2
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net462
- name: Test .net core 8.0
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net8.0
- name: Test .net core 9.0
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net9.0