Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering87 authored Sep 26, 2024
1 parent 458ba85 commit d057106
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore src/PDNDClientAssertionGenerator/PDNDClientAssertionGenerator.csproj
- name: Build
run: dotnet build src/PDNDClientAssertionGenerator/PDNDClientAssertionGenerator.csproj --no-restore
- name: Test

- name: Restore dependencies for all projects
run: dotnet restore src/PDNDClientAssertionGenerator.sln

- name: Build all projects
run: dotnet build src/PDNDClientAssertionGenerator.sln --no-restore --configuration Release

- name: Run tests
run: dotnet test src/PDNDClientAssertionGenerator.Tests/PDNDClientAssertionGenerator.Tests.csproj --no-build --verbosity normal
continue-on-error: true # Optional: allows workflow to continue even if tests fail, but mark the job as failed

0 comments on commit d057106

Please sign in to comment.