Update Kiota package references to version 1.16.0 in unit test project #4478
Workflow file for this run
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: CLI Tool | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- '**/*' | |
- '!.github/workflows/cli-tool.yml' | |
- '!src/Core/**/*.csproj' | |
- '!src/Core/**/*.cs' | |
- '!src/CLI/**/*.csproj' | |
- '!src/CLI/**/*.cs' | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
- cron: '0 8 * * *' | |
env: | |
VERSION: 1.17.${{ github.run_number }} | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Sets environment variables - branch-name | |
uses: christianhelle/branch-name@master | |
- name: Sets environment variables - Nerdbank.GitVersioning | |
uses: dotnet/nbgv@master | |
- name: Update Version | |
run: ((Get-Content -Path Core/ApiClientCodeGen.Core/ApiClientCodeGen.Core.csproj -Raw) -Replace ">1.0.0<", ">${{ env.VERSION }}<") | Set-Content -Path Core/ApiClientCodeGen.Core/ApiClientCodeGen.Core.csproj | |
working-directory: src | |
- name: Build with dotnet | |
run: dotnet build Rapicgen.sln | |
working-directory: src | |
- name: Build | |
run: dotnet build -c Release /p:UseSourceLink=true src/Rapicgen.sln -p:PackageVersion="${{ env.VERSION }}" | |
- name: Core test project | |
run: dotnet test --no-build src/Core/ApiClientCodeGen.Core.Tests/ApiClientCodeGen.Core.Tests.csproj | |
continue-on-error: true | |
- name: Package | |
run: dotnet pack --no-build -c Release /p:UseSourceLink=true src/CLI/ApiClientCodeGen.CLI/ApiClientCodeGen.CLI.csproj -p:PackageVersion="${{ env.VERSION }}" | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CLI Tool | |
path: | | |
**/*.nupkg | |
docs/CLI.md |