Skip to content

Commit e9b0e04

Browse files
committed
Merge branch 'master' into feature/lockfile
2 parents 15d1477 + 782e420 commit e9b0e04

File tree

283 files changed

+4481
-4864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

283 files changed

+4481
-4864
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
jobs:
2+
- ${{ each distro in parameters.distros }}:
3+
- ${{ each dotnetVersion in parameters.dotnetVersions }}:
4+
- job:
5+
displayName: 'Artifacts Test ${{ distro }} ${{ dotnetVersion }} (${{ parameters.name }})'
6+
pool:
7+
vmImage: ${{ parameters.vmImage }}
8+
steps:
9+
- template: common-steps.yml
10+
parameters:
11+
includeArtifacts: true
12+
- pwsh: ./build.ps1 -target Artifacts-Test -DockerDistro ${{ distro }} -DockerDotnetVersion ${{ dotnetVersion }}
13+
displayName: '[Docker Test Artifacts ${{ distro }}_${{ dotnetVersion }}]'

.azurepipelines/artifacts-test.yml renamed to .azurepipelines/artifacts-windows-test.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
jobs:
2-
- ${{ each distro in parameters.distros }}:
3-
- ${{ each dotnetVersion in parameters.dotnetVersions }}:
4-
- job:
5-
displayName: 'Artifacts Test ${{ distro }} ${{ dotnetVersion }} (${{ parameters.name }})'
6-
pool:
7-
vmImage: ${{ parameters.vmImage }}
8-
steps:
9-
- template: common-steps.yml
10-
parameters:
11-
includeArtifacts: true
12-
- pwsh: ./build.ps1 -target Artifacts-Test -DockerDistro ${{ distro }} -DockerDotnetVersion ${{ dotnetVersion }}
13-
displayName: '[Docker Test Artifacts ${{ distro }}_${{ dotnetVersion }}]'
142
- job: Artifacts_Test_MsBuild
153
displayName: Artifacts Test MsBuild (Windows)
164
pool:
@@ -40,4 +28,4 @@ jobs:
4028
parameters:
4129
includeArtifacts: true
4230
- pwsh: ./build.ps1 -target Artifacts-Portable-Test
43-
displayName: '[Portable Test Artifacts]'
31+
displayName: '[Portable Test Artifacts]'

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"isRoot": true,
44
"tools": {
55
"cake.tool": {
6-
"version": "0.37.0",
6+
"version": "1.0.0-rc0002",
77
"commands": [
88
"dotnet-cake"
99
]
1010
}
1111
}
12-
}
12+
}

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: nuget
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ jobs:
9696
shell: pwsh
9797
run: ./build.ps1 -target Test
9898

99-
artifact_test:
100-
name: Artifacts Test
99+
artifact_linux_test:
100+
name: Artifacts Linux Test
101101
needs: [build, test]
102102
runs-on: ubuntu-latest
103103
strategy:
104104
matrix:
105105
os: [linux]
106-
targetFramework: [3.1]
107-
distro: [alpine.3.10-x64, centos.7-x64, debian.9-x64, fedora.30-x64, ubuntu.16.04-x64, ubuntu.18.04-x64]
106+
targetFramework: [ '3.1', '5.0' ]
107+
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 ]
108108
fail-fast: false
109109

110110
steps:
@@ -225,16 +225,16 @@ jobs:
225225

226226
docker:
227227
name: Docker
228-
needs: [artifact_test, artifact_msbuild_test, artifact_commandline_test, artifact_portable_test]
228+
needs: [artifact_linux_test, artifact_msbuild_test, artifact_commandline_test, artifact_portable_test]
229229
runs-on: ubuntu-latest
230230
env:
231231
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
232232
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
233233
strategy:
234234
matrix:
235235
os: [linux]
236-
targetFramework: [3.1]
237-
distro: [alpine.3.10-x64, centos.7-x64, debian.9-x64, fedora.30-x64, ubuntu.16.04-x64, ubuntu.18.04-x64]
236+
targetFramework: [ '3.1', '5.0' ]
237+
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 ]
238238
fail-fast: false
239239

240240
steps:
@@ -265,7 +265,7 @@ jobs:
265265

266266
publish:
267267
name: Publish
268-
needs: [artifact_test]
268+
needs: [artifact_linux_test, artifact_msbuild_test, artifact_commandline_test, artifact_portable_test]
269269
runs-on: windows-latest
270270
strategy:
271271
matrix:

.github/workflows/format.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
name: Validate PR
1+
name: Validate Commit
22

3-
on: [pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'fix/*'
8+
- 'feature/*'
9+
10+
pull_request:
11+
branches:
12+
- master
413

514
jobs:
615
format:
716
runs-on: ubuntu-latest
817
name: DotNet Format
918
steps:
1019
- uses: actions/checkout@v2
11-
12-
# workaround for dotnet tools not being on path https://github.com/actions/virtual-environments/issues/213
13-
- name: add .dotnet/tools to path
14-
run: echo "::set-env name=PATH::${PATH}:${HOME}/.dotnet/tools"
15-
1620
- run: dotnet tool install -g dotnet-format
17-
1821
- run: dotnet format ./ --folder --check --exclude **/AddFormats/

.github/workflows/homebrew.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Homebrew
2+
3+
on:
4+
repository_dispatch:
5+
types: [release]
6+
jobs:
7+
homebrew:
8+
name: Bump Homebrew formula
9+
runs-on: macos-latest
10+
steps:
11+
- uses: dawidd6/action-homebrew-bump-formula@v3
12+
with:
13+
# GitHub token, required, not the default one
14+
token: ${{secrets.HOMEBREW_GITHUB_TOKEN}}
15+
# Formula name, required
16+
formula: gitversion
17+
tag: ${{ github.event.client_payload.ref }}

.github/workflows/release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ on:
44
types: [published]
55

66
jobs:
7-
callBuildFlow:
7+
release:
88
name: Trigger Build flow
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: octokit/[email protected]
13-
name: "Trigger Build flow"
12+
- uses: peter-evans/repository-dispatch@v1
1413
with:
15-
route: POST /repos/:repository/dispatches
14+
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
1615
repository: ${{ github.repository }}
17-
mediaType: '{"previews": ["everest"]}'
18-
event_type: release
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
16+
event-type: release
17+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
<h1>
2-
<img src="docs/input/docs/img/package_icon.svg" alt="Tree" height="100">
3-
GitVersion
4-
</h1>
1+
![GitVersion – From git log to SemVer in no time][banner]
52

6-
Versioning when using git, solved. GitVersion looks at your git history and
7-
works out the [semantic version][semver] of the commit being built.
3+
Versioning when using Git, solved. GitVersion looks at your git history and
4+
works out the [Semantic Version][semver] of the commit being built.
85

96
[![Build status][appveyor-badge]][appveyor]
107
[![Build status][azure-pipeline-badge]][azure-pipeline]
118
[![Build status][github-actions-badge]][github-actions]
12-
139
[![codecov][codecov-badge]][codecov]
1410
[![Gitter][gitter-badge]][gitter]
1511

@@ -19,7 +15,8 @@ works out the [semantic version][semver] of the commit being built.
1915
| **GitVersion.Portable** | [![Chocolatey][choco-badge]][choco] |
2016
| **GitVersion.Tool** | [![NuGet][gvgt-badge]][gvgt] |
2117
| **GitVersion.CommandLine** | [![NuGet][gvcl-badge]][gvcl] |
22-
| **GitVersionTask** | [![NuGet][gvt-badge]][gvt] |
18+
| **GitVersion.MsBuild** | [![NuGet][gvt-badge]][gvt] |
19+
| **Homebrew** | [![homebrew][brew-badge]][brew] |
2320
| **Azure Pipeline Task** | [![Azure Pipeline Task][az-pipeline-task-badge]][az-pipeline-task] |
2421
| **Github Action** | [![Github Action][gh-actions-badge]][gh-actions] |
2522
| **Docker** | [![Docker Pulls][dockerhub-badge]][dockerhub] |
@@ -28,12 +25,6 @@ works out the [semantic version][semver] of the commit being built.
2825

2926
GitVersion works on Windows, Linux, and Mac.
3027

31-
Tip: If you get `System.TypeInitializationException: The type initializer for
32-
'LibGit2Sharp.Core.NativeMethods' threw an exception. --->
33-
System.DllNotFoundException: lib/linux/x86_64/libgit2-baa87df.so` in versions prior to 5.0.0
34-
35-
You likely need to install `libcurl3`. Run `sudo apt-get install libcurl3`
36-
3728
## Quick Links
3829

3930
- [Documentation][docs]
@@ -77,24 +68,25 @@ from The Noun Project.
7768
[gh-rel-badge]: https://img.shields.io/github/release/gittools/gitversion.svg?logo=github
7869
[choco]: https://chocolatey.org/packages/GitVersion.Portable
7970
[choco-badge]: https://img.shields.io/chocolatey/v/gitversion.portable.svg?logo=nuget
80-
[gvt]: https://www.nuget.org/packages/GitVersionTask
81-
[gvt-badge]: https://img.shields.io/nuget/v/GitVersionTask.svg?logo=nuget
71+
[gvt]: https://www.nuget.org/packages/GitVersion.MsBuild
72+
[gvt-badge]: https://img.shields.io/nuget/v/GitVersion.MsBuild.svg?logo=nuget
8273
[gvcl]: https://www.nuget.org/packages/GitVersion.CommandLine
8374
[gvcl-badge]: https://img.shields.io/nuget/v/GitVersion.CommandLine.svg?logo=nuget
8475
[gvgt]: https://www.nuget.org/packages/GitVersion.Tool
8576
[gvgt-badge]: https://img.shields.io/nuget/v/GitVersion.Tool.svg?logo=nuget
86-
[brew]: http://brew.sh/
77+
[brew]: https://formulae.brew.sh/formula/gitversion
8778
[brew-badge]: https://img.shields.io/homebrew/v/gitversion.svg?logo=homebrew
8879
[dockerhub]: https://hub.docker.com/r/gittools/gitversion/
8980
[dockerhub-badge]: https://img.shields.io/docker/pulls/gittools/gitversion.svg?logo=docker
9081
[az-pipeline-task]: https://marketplace.visualstudio.com/items?itemName=gittools.gittools
91-
[az-pipeline-task-badge]: https://img.shields.io/badge/marketplace-gittools.gittools-blue?logo=visual-studio
92-
[gh-actions]: https://github.com/marketplace/actions/use-actions
93-
[gh-actions-badge]: https://img.shields.io/badge/marketplace-use--actions-blue?logo=github
82+
[az-pipeline-task-badge]: https://img.shields.io/badge/marketplace-gittools.gittools-blue?logo=azure-pipelines
83+
[gh-actions]: https://github.com/marketplace/actions/gittools
84+
[gh-actions-badge]: https://img.shields.io/badge/marketplace-gittools-blue?logo=github
9485
[contribute]: https://github.com/GitTools/GitVersion/blob/master/CONTRIBUTING.md
9586
[why]: https://gitversion.net/docs/why
9687
[usage]: https://gitversion.net/docs/usage/usage
9788
[how]: https://gitversion.net/docs/more-info/how-it-works
9889
[faq]: https://gitversion.net/docs/faq
9990
[who]: https://gitversion.net/docs/who
10091
[gv-in-action]: https://raw.github.com/GitTools/GitVersion/master/docs/input/docs/img/README.png
92+
[banner]: https://github.com/GitTools/graphics/raw/master/GitVersion/banner-1280x640.png

azure-pipelines.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,35 +48,48 @@ stages:
4848
steps:
4949
- template: .azurepipelines/test.yml
5050

51-
- stage: Artifact_Test
52-
displayName: 'Artifacts test'
51+
- stage: Artifact_Linux_Test
52+
displayName: 'Artifacts Linux test'
5353
dependsOn:
5454
- Build
5555
- Test
5656
condition: succeeded()
5757
jobs:
58-
- template: .azurepipelines/artifacts-test.yml
58+
- template: .azurepipelines/artifacts-linux-test.yml
5959
parameters:
6060
name: Linux
6161
vmImage: 'ubuntu-latest'
62-
distros: [ 'alpine.3.10-x64', 'centos.7-x64', 'debian.9-x64', 'fedora.30-x64', 'ubuntu.16.04-x64', 'ubuntu.18.04-x64' ]
63-
dotnetVersions: [ '3.1' ]
62+
distros: [ 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 ]
63+
dotnetVersions: [ '3.1', '5.0' ]
64+
65+
- stage: Artifact_Windows_Test
66+
displayName: 'Artifacts Windows test'
67+
dependsOn:
68+
- Build
69+
- Test
70+
condition: succeeded()
71+
jobs:
72+
- template: .azurepipelines/artifacts-windows-test.yml
6473

6574
- stage: Docker
6675
displayName: 'Docker Build & Test'
67-
dependsOn: Artifact_Test
76+
dependsOn:
77+
- Artifact_Linux_Test
78+
- Artifact_Windows_Test
6879
condition: succeeded()
6980
jobs:
7081
- template: .azurepipelines/docker.yml
7182
parameters:
7283
name: Linux
7384
vmImage: 'ubuntu-latest'
74-
distros: [ 'alpine.3.10-x64', 'centos.7-x64', 'debian.9-x64', 'fedora.30-x64', 'ubuntu.16.04-x64', 'ubuntu.18.04-x64' ]
75-
dotnetVersions: [ '3.1' ]
85+
distros: [ 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 ]
86+
dotnetVersions: [ '3.1', '5.0' ]
7687

7788
- stage: Publish
7889
displayName: 'Publish'
79-
dependsOn: Artifact_Test
90+
dependsOn:
91+
- Artifact_Linux_Test
92+
- Artifact_Windows_Test
8093
condition: succeeded()
8194
jobs:
8295
- job: Publish

0 commit comments

Comments
 (0)