diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 352f376..8ef8cd7 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1,16 +1,20 @@ name: Validate .NET solution on: - schedule: - - cron: '0 0 * * 2' workflow_dispatch: pull_request: - push: - branches: - - main jobs: validate-dotnet: name: Validate .NET solution - uses: azure-samples/code-validation/.github/workflows/dotnet.yml@main - with: - version: '8.0' - working-directory: './src' + 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 + working-directory: ./src + - name: Check .NET code format + run: dotnet format --verify-no-changes + working-directory: ./src