This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
Validate .NET code samples #125
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: Validate .NET code samples | |
on: | |
schedule: | |
- cron: '0 0 * * 2' | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
validate-dotnet: | |
name: Validate .NET solution | |
runs-on: ubuntu-latest | |
container: mcr.microsoft.com/dotnet/sdk:8.0 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check .NET version | |
run: dotnet --version | |
- name: Build .NET solution | |
run: dotnet build cosmoschatgpt.sln | |
working-directory: ./src | |
- name: Check .NET code format | |
run: dotnet format --verify-no-changes cosmoschatgpt.sln | |
working-directory: ./src |