Skip to content

Added Framework 4.8 to all projects #13

Added Framework 4.8 to all projects

Added Framework 4.8 to all projects #13

Workflow file for this run

name: build-test
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
timeout-minutes: 30
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: '0'
# - name: Set environment variables
# run: |
# echo GITVERSION_BUILD_NUMBER=${{ github.run_number }} >> $GITHUB_ENV
# echo GitVersion_NoNormalizeEnabled=true >> $GITHUB_ENV
# echo IGNORE_NORMALISATION_GIT_HEAD_MOVE=1 >> $GITHUB_ENV
- name: Build project
run: dotnet build --configuration Release
- name: Test project (Framework 4.6.1)
continue-on-error: true
run: dotnet test output/Release/net461/*Tests.dll --filter "TestCategory != SkipOnTeamCity" --logger:"trx" --results-directory ./test-results/net461
- name: Test project (Framework 4.8)
continue-on-error: true
run: dotnet test output/Release/net48/*Tests.dll --filter "TestCategory != SkipOnTeamCity" --logger:"trx" --results-directory ./test-results/net48
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action/windows@v2
with:
check_name: LibPalaso Tests
files: ./test-results/**/*.trx
action_fail: true
action_fail_on_inconclusive: true
# - name: Publish artifact
# uses: actions/upload-artifact@v3
# with:
# name: nuget
# path: output/*.nupkg