parallel run fixes and lint changes #1119
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: Minio-dotnet Windows Tests | |
on: | |
pull_request: | |
branches: | |
- master | |
# This ensures that previous jobs for the PR are canceled when the PR is | |
# updated. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Release] | |
dotnet-version: ["6.0.x", "7.0.x"] | |
runs-on: windows-latest | |
env: | |
Solution_Name: Minio.sln | |
Test_Project_Path: ./Minio.Tests/Minio.Tests.csproj | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# Install the .NET | |
- name: Setup .NET ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
# Install dependencies | |
- name: Install dependencies | |
run: | | |
dotnet clean ./Minio.sln --configuration Release && dotnet nuget locals all --clear | |
dotnet restore | |
# Build and Execute build tests | |
- name: Build & Unit Test | |
run: | | |
dotnet build --configuration Release --no-restore | |
dotnet pack ./Minio/Minio.csproj --no-build --configuration Release --output ./artifacts | |
dotnet test ./Minio.Tests/Minio.Tests.csproj | |
# Execute all functional tests in the solution | |
- name: Execute Functional Tests | |
run: | | |
dotnet build Minio.Functional.Tests --configuration Release | |
dotnet Minio.Functional.Tests/bin/Release/net6.0/Minio.Functional.Tests.dll |