Merge branch 'legacy/6.0' into legacy/7.0 #9
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: Test | |
on: | |
push: | |
branches: | |
- master | |
- legacy/* | |
paths: | |
- 'src/**' | |
- 'test/**' | |
- '.github/workflows/**' | |
env: | |
SOLUTION: DependencyInjection.StaticAccessor.sln | |
jobs: | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: | | |
3.1.x | |
5.0.x | |
6.0.x | |
7.0.x | |
8.0.x | |
- name: Restore NuGets | |
run: dotnet restore ${{ env.SOLUTION }} | |
- name: Build Solution in DEBUG | |
run: dotnet build --configuration Debug --no-restore ${{ env.SOLUTION }} | |
- name: Test in DEBUG | |
run: dotnet test --configuration Debug --no-build ${{ env.SOLUTION }} | |
- name: Build Solution in RELEASE | |
run: dotnet build --configuration Release --no-restore ${{ env.SOLUTION }} | |
- name: Test in RELEASE | |
run: dotnet test --configuration Release --no-build ${{ env.SOLUTION }} | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: | | |
3.1.x | |
5.0.x | |
6.0.x | |
7.0.x | |
8.0.x | |
- name: Restore NuGets | |
run: dotnet restore ${{ env.SOLUTION }} | |
- name: Build Solution in DEBUG | |
run: dotnet build --configuration Debug --no-restore ${{ env.SOLUTION }} | |
- name: Test in DEBUG with net6.0 | |
run: dotnet test --configuration Debug --no-build --framework net6.0 ${{ env.SOLUTION }} | |
- name: Test in DEBUG with net7.0 | |
run: dotnet test --configuration Debug --no-build --framework net7.0 ${{ env.SOLUTION }} | |
- name: Test in DEBUG with net8.0 | |
run: dotnet test --configuration Debug --no-build --framework net8.0 ${{ env.SOLUTION }} | |
- name: Build Solution in RELEASE | |
run: dotnet build --configuration Release --no-restore ${{ env.SOLUTION }} | |
- name: Test in RELEASE with net6.0 | |
run: dotnet test --configuration Release --no-build --framework net6.0 ${{ env.SOLUTION }} | |
- name: Test in RELEASE with net7.0 | |
run: dotnet test --configuration Release --no-build --framework net7.0 ${{ env.SOLUTION }} | |
- name: Test in RELEASE with net8.0 | |
run: dotnet test --configuration Release --no-build --framework net8.0 ${{ env.SOLUTION }} |