[OpenApi] Order properties alphabetically, meaning output stays more … #112
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: Blueprint Build | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
## CI Trigger on master branch | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- 'docs/**' | |
- '**/*.md' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK 6.0.x | |
uses: actions/setup-dotnet@v1.7.2 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Setup .NET SDK 5.0.x | |
uses: actions/setup-dotnet@v1.7.2 | |
with: | |
dotnet-version: '5.0.x' | |
#- name: SonarCloud Preparation | |
# uses: sonarsource/sonarcloud-github-action@master | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: dotnet restore | |
run: dotnet restore | |
- name: dotnet build | |
run: dotnet build --configuration Release --no-restore | |
- name: dotnet test | |
run: dotnet test --configuration Release --no-build --no-restore | |
- name: dotnet pack | |
run: dotnet pack --configuration Release --output ${{ github.workspace }}/.nupkgs -verbosity:minimal --no-build | |
if: ${{ success() && github.event_name != 'pull_request' }} | |
- name: dotnet nuget push | |
run: dotnet nuget push "*.nupkg" --source "https://nuget.pkg.github.com/barclayadam/index.json" --api-key "$env:TOKEN" | |
env: | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: ${{ github.workspace }}/.nupkgs | |
if: ${{ success() && github.event_name != 'pull_request' }} | |
#- name: Analyze with SonarCloud | |
# uses: sonarsource/sonarcloud-github-action@master | |
#- name: Publish SonarCloud results | |
# uses: actions/SonarCloudPublish@1 | |
# with: | |
# pollingTimeoutSec: '300' |