improve azure pipelines configuration

This commit is contained in:
Artur Stolear
2023-10-14 22:27:30 +02:00
parent 7a786a5b0e
commit ebb10d63bf

View File

@@ -8,36 +8,39 @@ variables:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true' DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
INPUT_VERSIONSPEC: '5.x' INPUT_VERSIONSPEC: '5.x'
strategy: jobs:
matrix: - job: build
linux: displayName: ''
imageName: 'ubuntu-latest' strategy:
macos: matrix:
imageName: 'macos-latest' 'ubuntu-latest':
windows: imageName: 'ubuntu-latest'
imageName: 'windows-latest' 'macos-latest':
imageName: 'macos-latest'
'windows-latest':
imageName: 'windows-latest'
pool: pool:
vmImage: $(imageName) vmImage: $(imageName)
steps: steps:
- checkout: self - checkout: self
fetchDepth: '0' fetchDepth: '0'
- pwsh: | - pwsh: |
npm install npm install
npm run format-check npm run format-check
npm run build:azure npm run build:azure
displayName: 'Build code' displayName: 'Build code'
- pwsh: $env:INPUT_VERSIONSPEC = "$(INPUT_VERSIONSPEC)"; node ./gitversion/setup/bundle.js - pwsh: $env:INPUT_VERSIONSPEC = "$(INPUT_VERSIONSPEC)"; node ./gitversion/setup/bundle.js
displayName: gitversion/setup displayName: gitversion/setup
workingDirectory: dist/azure workingDirectory: dist/azure
- pwsh: node ./gitversion/execute/bundle.js - pwsh: node ./gitversion/execute/bundle.js
name: version name: version
displayName: gitversion/execute displayName: gitversion/execute
workingDirectory: dist/azure workingDirectory: dist/azure
- pwsh: | - pwsh: |
echo "FullSemVer (fullSemVer) : $(fullSemVer)" echo "FullSemVer (fullSemVer) : $(fullSemVer)"
echo "FullSemVer (GitVersion_FullSemVer) : $(GitVersion_FullSemVer)" echo "FullSemVer (GitVersion_FullSemVer) : $(GitVersion_FullSemVer)"
echo "FullSemVer (version.fullSemVer) : $(version.fullSemVer)" echo "FullSemVer (version.fullSemVer) : $(version.fullSemVer)"
echo "FullSemVer (version.GitVersion_FullSemVer) : $(version.GitVersion_FullSemVer)" echo "FullSemVer (version.GitVersion_FullSemVer) : $(version.GitVersion_FullSemVer)"
displayName: Use variables and output displayName: Use variables and output