Skip to content

Commit

Permalink
Merge branch 'main' of github.com:GitTools/GitVersion
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/GitVersion.Core.Tests/Core/DynamicRepositoryTests.cs
#	src/GitVersion.Core.Tests/IntegrationTests/DevelopScenarios.cs
#	src/GitVersion.Core.Tests/IntegrationTests/DocumentationSamples.cs
#	src/GitVersion.Core.Tests/IntegrationTests/ReleaseBranchScenarios.cs
#	src/GitVersion.Core/VersionCalculation/BaseVersionCalculator.cs
  • Loading branch information
ni-fgenois committed Oct 18, 2021
2 parents c2be8de + db23e17 commit 86d67b8
Show file tree
Hide file tree
Showing 533 changed files with 24,171 additions and 25,245 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true

# Avoid "this." and "Me." if not necessary
dotnet_style_qualification_for_field = true:warning
dotnet_style_qualification_for_field = false:silent
dotnet_style_qualification_for_property = false:silent
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_event = false:silent
Expand Down
132 changes: 102 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
with:
path: run
key: run-${{ runner.os }}-${{ hashFiles('./build/**') }}
-
name: Install .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: '[Prepare]'
if: steps.cache-cake.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -83,6 +89,12 @@ jobs:
with:
path: tools
key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
-
name: Install .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: '[Build]'
shell: pwsh
Expand Down Expand Up @@ -110,7 +122,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
targetFramework: [net5.0, netcoreapp3.1]
targetFramework: [net5.0, net6.0, netcoreapp3.1]
fail-fast: false

steps:
Expand All @@ -134,6 +146,12 @@ jobs:
with:
path: tools
key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
-
name: Install .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: '[Build]'
shell: pwsh
Expand Down Expand Up @@ -175,6 +193,12 @@ jobs:
with:
name: nuget
path: ${{ github.workspace }}/artifacts/packages/nuget
-
name: Install .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: '[Test Artifacts]'
shell: pwsh
Expand All @@ -186,8 +210,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
targetFramework: [ '3.1', '5.0' ]
distro: [ alpine.3.12-x64, centos.7-x64, centos.8-x64, debian.9-x64, debian.10-x64, fedora.33-x64, ubuntu.16.04-x64, ubuntu.18.04-x64, ubuntu.20.04-x64 ]
targetFramework: [ '3.1', '5.0', '6.0' ]
distro: [ alpine.3.12, alpine.3.13, alpine.3.14, centos.7, centos.8, debian.9, debian.10, debian.11, fedora.33, ubuntu.18.04, ubuntu.20.04 ]
fail-fast: false

steps:
Expand Down Expand Up @@ -224,18 +248,36 @@ jobs:
name: native-${{ runner.os }}
path: ${{ github.workspace }}/artifacts/packages/native
-
name: '[Test Artifacts]'
name: Setup QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true
-
name: Install .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: '[Test Artifacts (amd64)]'
shell: pwsh
run: dotnet run/artifacts.dll --target=ArtifactsTest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }}
run: dotnet run/artifacts.dll --target=ArtifactsTest --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --verbosity=diagnostic
-
name: '[Test Artifacts (arm64)]'
shell: pwsh
run: dotnet run/artifacts.dll --target=ArtifactsTest --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }}

docker_linux_images:
name: Build, Test and Publish Docker Images
needs: [build]
runs-on: ubuntu-latest
strategy:
matrix:
targetFramework: [ '3.1', '5.0' ]
distro: [ alpine.3.12-x64, centos.7-x64, centos.8-x64, debian.9-x64, debian.10-x64, fedora.33-x64, ubuntu.16.04-x64, ubuntu.18.04-x64, ubuntu.20.04-x64 ]
targetFramework: [ '3.1', '5.0', '6.0' ]
distro: [ alpine.3.12, alpine.3.13, alpine.3.14, centos.7, centos.8, debian.9, debian.10, debian.11, fedora.33, ubuntu.18.04, ubuntu.20.04 ]
fail-fast: false

steps:
Expand Down Expand Up @@ -266,17 +308,19 @@ jobs:
name: nuget
path: ${{ github.workspace }}/artifacts/packages/nuget
-
name: Set up QEMU
name: Setup QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true
-
name: '[Docker Build/Test] DockerHub'
shell: pwsh
run: dotnet run/docker.dll --target=DockerTest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
name: Install .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: Login to DockerHub
if: success() && github.event_name != 'pull_request'
Expand All @@ -285,28 +329,44 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: '[Docker Publish] DockerHub'
name: '[Docker Build/Test/Publish (amd64)] DockerHub'
if: success() && github.event_name != 'pull_request'
shell: pwsh
run: dotnet run/docker.dll --target=DockerPublish --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
run: dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
-
name: '[Docker Build/Test/Publish (arm64)] DockerHub'
if: success() && github.event_name != 'pull_request'
shell: pwsh
run: dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub
-
name: '[Docker Publish Manifest] DockerHub'
if: success() && github.event_name != 'pull_request'
shell: pwsh
run: dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry dockerhub

# -
# name: '[Docker Build/Test] GitHub Container Registry'
# shell: pwsh
# run: dotnet run/docker.dll --target=DockerTest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
# -
# name: Login to GitHub Container Registry
# if: success() && github.event_name != 'pull_request'
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# -
# name: '[Docker Publish] GitHub Container Registry'
# if: success() && github.event_name != 'pull_request'
# shell: pwsh
# run: dotnet run/docker.dll --target=DockerPublish --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
-
name: Login to GitHub Container Registry
if: success() && github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_GITHUB_TOKEN }}
-
name: '[Docker Build/Test/Publish (amd64)] GitHub Container Registry'
if: success() && github.event_name != 'pull_request'
shell: pwsh
run: dotnet run/docker.dll --target=DockerPublish --arch amd64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
-
name: '[Docker Build/Test/Publish (arm64)] GitHub Container Registry'
if: success() && github.event_name != 'pull_request'
shell: pwsh
run: dotnet run/docker.dll --target=DockerPublish --arch arm64 --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github
-
name: '[Docker Publish Manifest] GitHub Container Registry'
if: success() && github.event_name != 'pull_request'
shell: pwsh
run: dotnet run/docker.dll --target=DockerManifest --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }} --docker_registry github

publish:
name: Publish
Expand Down Expand Up @@ -347,6 +407,12 @@ jobs:
with:
name: nuget
path: ${{ github.workspace }}/artifacts/packages/nuget
-
name: Install .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: '[Publish]'
shell: pwsh
Expand Down Expand Up @@ -397,6 +463,12 @@ jobs:
with:
name: native-macOS
path: ${{ github.workspace }}/artifacts/packages/native
-
name: Install .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: '[Release]'
shell: pwsh
Expand Down
42 changes: 39 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,52 @@ jobs:
language: [ 'csharp' ]

steps:
- name: Checkout repository
-
name: Checkout repository
uses: actions/checkout@v2.3.4
-
name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v1
-
name: Cache cake frosting
id: cache-cake
uses: actions/cache@v2.1.6
with:
path: run
key: run-${{ runner.os }}-${{ hashFiles('./build/**') }}

-
name: Install .NET Core SDK 3.1.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'

-
name: Install .NET SDK 5.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
-
name: Install .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: '[Prepare]'
if: steps.cache-cake.outputs.cache-hit != 'true'
run: dotnet build build/CI.sln --configuration=Release

-
name: '[Build]'
shell: pwsh
run: dotnet run/build.dll --target=Build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
arguments: --url-ignore /api/ --allow-hash-href --assume-extension --disable-external
-
name: '[Remark Lint]'
uses: reviewdog/action-remark-lint@v3
uses: reviewdog/action-remark-lint@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,15 @@ jobs:
name: DotNet Format
steps:
- uses: actions/checkout@v2.3.4
- run: dotnet tool restore
- run: dotnet format ./ --folder --check --exclude **/AddFormats/
-
name: Setup .NET SDK
uses: actions/setup-dotnet@v1.8.2
with:
dotnet-version: '6.0.x'
include-prerelease: true
-
name: Run Format Build solution
run: dotnet format ./build/ --verify-no-changes
-
name: Run Format GitVersion solution
run: dotnet format ./src/ --exclude **/AddFormats/ --verify-no-changes
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,10 @@ from The Noun Project.
[semver]: http://semver.org
[gitter]: https://gitter.im/GitTools/GitVersion?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
[gitter-badge]: https://badges.gitter.im/Join+Chat.svg
[appveyor]: https://ci.appveyor.com/project/GitTools/gitversion/branch/main
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/sxje0wht0cscmn7w/branch/main?svg=true
[azure-pipeline]: https://dev.azure.com/GitTools/GitVersion/_build/latest?definitionId=1
[azure-pipeline-badge]: https://dev.azure.com/GitTools/GitVersion/_apis/build/status/GitTools.GitVersion
[github-actions]: https://github.com/GitTools/GitVersion/actions
[github-actions-badge]: https://github.com/GitTools/GitVersion/workflows/Build/badge.svg
[travis]: https://travis-ci.org/GitTools/GitVersion
[travis-badge]: https://travis-ci.org/GitTools/GitVersion.svg?branch=main
[codecov]: https://codecov.io/gh/GitTools/GitVersion
[codecov-badge]: https://codecov.io/gh/GitTools/GitVersion/branch/main/graph/badge.svg
[docs]: https://gitversion.net/docs/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Artifacts DotnetTool Test" type="DotNetProject" factoryName=".NET Project" folderName="Artifacts">
<option name="EXE_PATH" value="$PROJECT_DIR$/../run/artifacts-test.exe" />
<option name="PROGRAM_PARAMETERS" value="--target=ArtifactsDotnetToolTest --docker_dotnetversion=5.0 --docker_distro=alpine.3.12-x64" />
<option name="EXE_PATH" value="$PROJECT_DIR$/../run/artifacts.exe" />
<option name="PROGRAM_PARAMETERS" value="--target=ArtifactsDotnetToolTest --arch=amd64 --docker_dotnetversion=6.0 --docker_distro=debian.11" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/.." />
<option name="PASS_PARENT_ENVS" value="1" />
<option name="USE_EXTERNAL_CONSOLE" value="0" />
Expand All @@ -12,7 +12,7 @@
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="0" />
<option name="PROJECT_KIND" value="DotNetCore" />
<option name="PROJECT_TFM" value="net5.0" />
<option name="PROJECT_TFM" value="net6.0" />
<method v="2">
<option name="Build" />
</method>
Expand Down
8 changes: 4 additions & 4 deletions build/.run/Artifacts Executable Test.run.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<component name="ProjectRunConfigurationManager">
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Artifacts Executable Test" type="DotNetProject" factoryName=".NET Project" folderName="Artifacts">
<option name="EXE_PATH" value="$PROJECT_DIR$/../run/artifacts-test.exe" />
<option name="EXE_PATH" value="$PROJECT_DIR$/../run/artifacts.exe" />
<option name="PROGRAM_PARAMETERS" value="--target=ArtifactsExecutableTest" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/.." />
<option name="PASS_PARENT_ENVS" value="1" />
Expand All @@ -12,9 +12,9 @@
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="0" />
<option name="PROJECT_KIND" value="DotNetCore" />
<option name="PROJECT_TFM" value="net5.0" />
<option name="PROJECT_TFM" value="net6.0" />
<method v="2">
<option name="Build" />
</method>
</configuration>
</component>
</component>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Artifacts MsBuildCore Test" type="DotNetProject" factoryName=".NET Project" folderName="Artifacts">
<option name="EXE_PATH" value="$PROJECT_DIR$/../run/artifacts-test.exe" />
<option name="PROGRAM_PARAMETERS" value="--target=ArtifactsMsBuildCoreTest --docker_dotnetversion=5.0 --docker_distro=alpine.3.12-x64" />
<option name="EXE_PATH" value="$PROJECT_DIR$/../run/artifacts.exe" />
<option name="PROGRAM_PARAMETERS" value="--target=ArtifactsMsBuildCoreTest --arch=amd64 --docker_dotnetversion=6.0 --docker_distro=alpine.3.12-x64" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/.." />
<option name="PASS_PARENT_ENVS" value="1" />
<option name="USE_EXTERNAL_CONSOLE" value="0" />
Expand All @@ -12,7 +12,7 @@
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="0" />
<option name="PROJECT_KIND" value="DotNetCore" />
<option name="PROJECT_TFM" value="net5.0" />
<option name="PROJECT_TFM" value="net6.0" />
<method v="2">
<option name="Build" />
</method>
Expand Down
Loading

0 comments on commit 86d67b8

Please sign in to comment.