diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 452955d..52d71d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,4 +56,20 @@ jobs: - name: dart-analyze run: | cd snippets/dart_snippets - dart analyze --fatal-infos \ No newline at end of file + dart analyze --fatal-infos + + check-csharp: + name: Check C# snippets + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '7.0.x' + + - name: Build the csharp project + working-directory: snippets/csharp + run: dotnet build