Skip to content

Commit

Permalink
Add .NET codestyle check
Browse files Browse the repository at this point in the history
  • Loading branch information
picoliu committed Feb 25, 2025
1 parent b6b9e58 commit 72d46b2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/dotnet-codestyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: .NET Codestyle

on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'recipes/llm-voice-assistant/dotnet/**/*.cs'
- '.github/workflows/dotnet-codestyle.yml'
pull_request:
branches: [ main, 'v[0-9]+.[0-9]+' ]
paths:
- 'recipes/llm-voice-assistant/dotnet/**/*.cs'
- '.github/workflows/dotnet-codestyle.yml'

jobs:
check-dotnet-codestyle:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Run Binding Codestyle
run: dotnet format --verify-no-changes
working-directory: binding/dotnet

- name: Run Demo Codestyle
run: dotnet format --verify-no-changes
working-directory: demo/dotnet

0 comments on commit 72d46b2

Please sign in to comment.