Bump Microsoft.Extensions.DependencyInjection from 7.0.0 to 8.0.0 #135
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
pull_request: | |
branches: [ "master" ] | |
workflow_call: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Release] | |
os: [ubuntu-latest, windows-latest] | |
name: Build and Test | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
# Fetch NuGet packages from cache | |
- name: Restore package cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj*') }} | |
restore-keys: | | |
${{ runner.os }}-nuget | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
# Restore the application to install all dependencies | |
- name: Install dependencies | |
run: dotnet restore | |
# Execute all unit tests in the solution | |
- name: Execute unit tests | |
run: dotnet test --no-restore --verbosity normal | |
# Build on all platforms and configurations | |
- name: Build ${{ matrix.configuration }} on ${{ matrix.os }} | |
run: dotnet build --configuration ${{ matrix.configuration }} --no-restore | |