diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e39613c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + pull_request: + branches: + - main + +jobs: + bonsai-interface: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v4.0.0 + with: + dotnet-version: 8.x + + - name: Regenerate Bonsai Interface + run: dotnet build ./Generators + + - name: Check uncommitted changes + run: | + git config --global core.safecrlf false + git diff --exit-code || (echo "Untracked changes found while regenerating Bonsai interface" && exit 1) \ No newline at end of file