added v5 and v6 configs #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
GitVersion_v5: | |
name: GitVersion v5 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-13, macos-14] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Fetch all history for all tags and branches | |
run: | | |
git fetch --prune --unshallow | |
- uses: gittools/actions/gitversion/setup@v0.12 | |
name: Install GitVersion | |
with: | |
versionSpec: '5.x' | |
includePrerelease: false | |
- uses: gittools/actions/gitversion/execute@v0.12 | |
name: Use GitVersion | |
with: | |
useConfigFile: true | |
configFilePath: 'GitVersion_v5.yml' | |
additionalArguments: '/overrideconfig update-build-number=false' | |
id: gitversion # step id used as reference for output values | |
- run: | | |
echo "FullSemVer (env.fullSemVer) : ${{ env.fullSemVer }}" | |
echo "FullSemVer (env.GitVersion_FullSemVer) : ${{ env.GitVersion_FullSemVer }}" | |
echo "FullSemVer (steps.gitversion.outputs.fullSemVer) : ${{ steps.gitversion.outputs.fullSemVer }}" | |
echo "FullSemVer (steps.gitversion.outputs.GitVersion_FullSemVer) : ${{ steps.gitversion.outputs.GitVersion_FullSemVer }}" | |
name: Use variables and output | |
GitVersion_v6: | |
name: GitVersion v6 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ windows-latest, ubuntu-latest, macos-13, macos-14 ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Fetch all history for all tags and branches | |
run: | | |
git fetch --prune --unshallow | |
- uses: gittools/actions/gitversion/setup@v0.12 | |
name: Install GitVersion | |
with: | |
versionSpec: '6.x' | |
includePrerelease: true | |
- uses: gittools/actions/gitversion/execute@v0.12 | |
name: Use GitVersion | |
with: | |
useConfigFile: true | |
configFilePath: 'GitVersion_v6.yml' | |
additionalArguments: '/overrideconfig update-build-number=false' | |
id: gitversion # step id used as reference for output values | |
- run: | | |
echo "FullSemVer (env.fullSemVer) : ${{ env.fullSemVer }}" | |
echo "FullSemVer (env.GitVersion_FullSemVer) : ${{ env.GitVersion_FullSemVer }}" | |
echo "FullSemVer (steps.gitversion.outputs.fullSemVer) : ${{ steps.gitversion.outputs.fullSemVer }}" | |
echo "FullSemVer (steps.gitversion.outputs.GitVersion_FullSemVer) : ${{ steps.gitversion.outputs.GitVersion_FullSemVer }}" | |
name: Use variables and output |