diff --git a/.github/workflows/build-nugetlibrary-task.yml b/.github/workflows/build-nugetlibrary-task.yml index 0a5de77f..3bdc4f8b 100644 --- a/.github/workflows/build-nugetlibrary-task.yml +++ b/.github/workflows/build-nugetlibrary-task.yml @@ -39,6 +39,7 @@ jobs: - name: Build NuGet library project step run: | + set -euo pipefail dotnet build ./NuGetLibrary/NuGetLibrary.csproj \ -property:OutputPath=${{ runner.temp }}/publish/ \ -property:PackageOutputPath=${{ runner.temp }}/publish/ \ @@ -52,6 +53,7 @@ jobs: - name: Publish to NuGet.org step if: ${{ inputs.push }} run: | + set -euo pipefail dotnet nuget push ${{ runner.temp }}/publish/*.nupkg \ --source https://api.nuget.org/v3/index.json \ --api-key ${{ secrets.NUGET_API_KEY }} \ diff --git a/.github/workflows/run-codegen-app-pull-request-task.yml b/.github/workflows/run-codegen-app-pull-request-task.yml index 5557f5eb..31dfcb53 100644 --- a/.github/workflows/run-codegen-app-pull-request-task.yml +++ b/.github/workflows/run-codegen-app-pull-request-task.yml @@ -43,12 +43,14 @@ jobs: - name: Run codegen step run: | + set -euo pipefail dotnet run --project ./CodeGen/CodeGen.csproj -- \ --codepath ./CodeGen \ --apikey "${{ secrets.NINJA_API_KEY }}" - name: Format code step run: | + set -euo pipefail dotnet tool restore dotnet csharpier format --log-level=debug . git status diff --git a/.github/workflows/run-codegen-pull-request-task.yml b/.github/workflows/run-codegen-pull-request-task.yml index 88dfc3b2..77b99b52 100644 --- a/.github/workflows/run-codegen-pull-request-task.yml +++ b/.github/workflows/run-codegen-pull-request-task.yml @@ -33,12 +33,14 @@ jobs: - name: Run codegen step run: | + set -euo pipefail dotnet run --project ./CodeGen/CodeGen.csproj -- \ --codepath ./CodeGen \ --apikey "${{ secrets.NINJA_API_KEY }}" - name: Format code step run: | + set -euo pipefail dotnet tool restore dotnet csharpier format --log-level=debug . git status @@ -60,6 +62,7 @@ jobs: - name: Trigger PR workflows step if: steps.cpr.outputs.pull-request-number != '' run: | + set -euo pipefail PR="${{ steps.cpr.outputs.pull-request-number }}" gh pr close "$PR" gh pr reopen "$PR" diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 394ebc9a..dd87da69 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -27,6 +27,7 @@ jobs: steps: - name: Check workflow results step run: | + set -euo pipefail exit_on_result() { if [[ "$2" == "failure" || "$2" == "cancelled" ]]; then echo "Job '$1' failed or was cancelled." diff --git a/.gitignore b/.gitignore index 8e1e603e..0db2f387 100644 --- a/.gitignore +++ b/.gitignore @@ -8,8 +8,8 @@ .artifacts .DS_Store *.user +.claude -# Python / uv __pycache__/ *.py[cod] *.egg-info/