Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BOB-206 ParallelTestFrameWork для UI приложений [Under construction] #22

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 69 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,69 @@
name: publish
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
NuGetDirectory: ${{ github.workspace}}/nuget

defaults:
run:
shell: pwsh

jobs:
create_nuget:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
- run: dotnet test Meziantou.Xunit.ParallelTestFramework.sln --configuration Release
- run: dotnet pack Meziantou.Xunit.ParallelTestFramework.sln --configuration Release --output ${{ env.NuGetDirectory }} --no-build /bl
- uses: actions/upload-artifact@v2
with:
name: nuget
if-no-files-found: error
retention-days: 3
path: ${{ env.NuGetDirectory }}/**/*
name: CI

on:
push:
branches:
- main
- feature/*
tags:
- '*'
pull_request:
branches:
- main
- feature/*

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'

- name: Initialize .NET tool manifest
run: |
dotnet new tool-manifest || true

- name: Install minver-cli locally
run: dotnet tool install minver-cli --version 5.0.0

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore

- name: Run tests
run: dotnet test --no-build --verbosity normal

- name: Get MinVer version
id: get_version
run: |
MINVER_VERSION=$(dotnet minver)
echo "MINVER_VERSION=${MINVER_VERSION}" >> $GITHUB_ENV

- name: Get latest tag
id: get_tag
run: |
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
echo "TAG=${TAG}" >> $GITHUB_ENV

- name: Determine version
id: determine_version
run: |
if [ "${GITHUB_REF}" == "refs/heads/main" ]; then
VERSION=${{ env.TAG }}
else
VERSION=${{ env.MINVER_VERSION }}
fi
echo "VERSION=${VERSION}" >> $GITHUB_ENV

- name: Pack and Push
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
run: |
dotnet pack -c Release /p:Version=${{ env.VERSION }}
dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,5 @@ MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/

**/testframework.settings.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/.idea.Tennisi.Xunit.ParallelTestFramework/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.Tennisi.Xunit.ParallelTestFramework/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 44 additions & 52 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,53 +1,45 @@
<Project>

<PropertyGroup>
<_ContinuousIntegrationBuild Condition="'$(TF_BUILD)' == 'true' or '$(GITHUB_ACTIONS)' == 'true' or '$(GITLAB_CI)' == 'true'">True</_ContinuousIntegrationBuild>

<LangVersion>10</LangVersion>
<TreatWarningsAsErrors Condition="'$(Configuration)' != 'Debug'">true</TreatWarningsAsErrors>
<Deterministic>true</Deterministic>
<Features>strict</Features>
<AnalysisLevel>latest</AnalysisLevel>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<NoWarn>$(NoWarn);CA1014;CA1031;xUnit1026</NoWarn>

<ReportAnalyzer>true</ReportAnalyzer>

<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
<RestoreSources>https://api.nuget.org/v3/index.json</RestoreSources>
</PropertyGroup>

<!-- Package attributes -->
<PropertyGroup>
<Authors>Meziantou</Authors>
<Company>Meziantou</Company>
<PackageProjectUrl>https://github.com/meziantou/Meziantou.Xunit.ParallelTestFramework</PackageProjectUrl>
<RepositoryUrl>https://github.com/meziantou/Meziantou.Xunit.ParallelTestFramework.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<!-- disable the nullable warnings when compiling for target that haven't annotation -->
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net461' OR '$(TargetFramework)' == 'netcoreapp2.1'">
<NoWarn>$(NoWarn);8600;8601;8602;8603;8604;8619;8767</NoWarn>
</PropertyGroup>

<!-- Analyzers -->
<ItemGroup>
<PackageReference Include="Meziantou.Analyzer" Version="2.0.162">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<!-- SourceLink and Reproducible Builds: https://www.meziantou.net/2018/07/09/how-to-debug-nuget-packages-using-sourcelink -->
<ItemGroup>
<SourceRoot Include="$(MSBuildThisFileDirectory)/" />

<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<Project>

<PropertyGroup>
<_ContinuousIntegrationBuild Condition="'$(TF_BUILD)' == 'true' or '$(GITHUB_ACTIONS)' == 'true' or '$(GITLAB_CI)' == 'true'">True</_ContinuousIntegrationBuild>

<LangVersion>10</LangVersion>
<TreatWarningsAsErrors Condition="'$(Configuration)' != 'Debug'">true</TreatWarningsAsErrors>
<Deterministic>true</Deterministic>
<Features>strict</Features>
<AnalysisLevel>latest</AnalysisLevel>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<NoWarn>$(NoWarn);CA1014;CA1031;xUnit1026;CA2007;CA1822;CA1062;CS8417;NU5128;CA1307;CA1310;CA1825;CS8765;CS8625;CS8603;CS8601;1591</NoWarn>

<ReportAnalyzer>true</ReportAnalyzer>

<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
<RestoreSources>https://api.nuget.org/v3/index.json</RestoreSources>
</PropertyGroup>

<!-- Package attributes -->
<PropertyGroup>
<Authors>Tennisi</Authors>
<Company>Tennisi</Company>
<PackageProjectUrl>https://github.com/tennisi/Tennisi.Xunit.ParallelTestFramework</PackageProjectUrl>
<RepositoryUrl>https://github.com/tennisi/Tennisi.Xunit.ParallelTestFramework.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<!-- disable the nullable warnings when compiling for target that haven't annotation -->
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net461' OR '$(TargetFramework)' == 'netcoreapp2.1'">
<NoWarn>$(NoWarn);8600;8601;8602;8603;8604;8619;8767;</NoWarn>
</PropertyGroup>

<!-- SourceLink and Reproducible Builds: https://www.meziantou.net/2018/07/09/how-to-debug-nuget-packages-using-sourcelink -->
<ItemGroup>
<SourceRoot Include="$(MSBuildThisFileDirectory)/" />

<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
21 changes: 0 additions & 21 deletions LICENSE.md

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions Meziantou.Xunit.ParallelTestFramework.Tests/BlockingTheoryTests.cs

This file was deleted.

Loading