Skip to content

Try toget dotnet test working in GitHub actions #31

Try toget dotnet test working in GitHub actions

Try toget dotnet test working in GitHub actions #31

Workflow file for this run

name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '7.0.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
id: stepid
with:
dotnet-version: ${{ matrix.dotnet-version }}
# - name: Create temporary global.json
# run: echo '{"sdk":{"version":"${{ steps.stepid.outputs.dotnet-version }}"}}' > ./global.json
- name: Display dotnet version
run: dotnet --version
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
timeout-minutes: 2
run: dotnet test --no-build --verbosity normal --blame-hang-timeout 45s --blame-hang-dump-type full
- name: Archive test results
uses: actions/upload-artifact@v3
if: always()
with:
name: TestResults
path: |
/home/runner/work/Activout.RestClient/Activout.RestClient/Activout.RestClient.Test/TestResults/