Skip to content

Add NuGetPreReleaseTagV2 into the version (#173) #240

Add NuGetPreReleaseTagV2 into the version (#173)

Add NuGetPreReleaseTagV2 into the version (#173) #240

Workflow file for this run

name: CI Build
on:
push:
branches:
- main
- develop
schedule:
- cron: "0 8 * * 1" # At 08:00 on Monday
jobs:
unit-test:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
steps:
- name: Setup .Net
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- uses: actions/checkout@v4
- name: Tool restore
run: dotnet tool restore
- uses: ./.github/actions/build-kiota
id: kiota
- name: Restore
run: dotnet restore --nologo
env:
KIOTA_BIN: ${{ steps.kiota.outputs.command }}
- name: Build
run: dotnet build --no-restore --nologo --configuration Release
- name: Test
run: dotnet test --nologo --no-build --configuration Release
code-style:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
steps:
- uses: actions/checkout@v4
- name: Setup .Net 8.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore
run: dotnet restore --nologo
env:
RESTORE_WITH_CLIENT_GENERATION: false
- name: .Net Format
run: dotnet format --no-restore --verify-no-changes -v diag --exclude Client