Files
actions/.azure/ci.yml
2023-03-11 17:16:27 +01:00

37 lines
765 B
YAML

trigger:
- main
pr:
- main
variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 'true'
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
INPUT_VERSIONSPEC: '5.x'
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macos-latest'
windows:
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
steps:
- checkout: self
fetchDepth: '0'
- pwsh: |
npm install
npm run format-check
npm run build:azure
displayName: 'Build code'
- bash: 'INPUT_VERSIONSPEC=$(INPUT_VERSIONSPEC) node ./gitversion/setup/bundle.js'
displayName: gitversion/setup
workingDirectory: dist/azure
- bash: 'node ./gitversion/execute/bundle.js'
displayName: gitversion/execute
workingDirectory: dist/azure