From 6037cc2222c5c25a1e1af0647faab351717d0ef5 Mon Sep 17 00:00:00 2001 From: moheladwy Date: Wed, 10 Dec 2025 00:37:58 +0200 Subject: [PATCH 1/3] feat: Add automated test workflow and update checkout action - Create new GitHub Actions workflow (run-tests.yml) to automatically build and run tests on pull requests and non-main branch pushes - Configure workflow to trigger on pushes to branches other than main and pull requests - Add .NET 10.0.x and Godot 4.5.1 setup steps for test environment - Update actions/checkout action from v5 to v6 in create-release.yml workflow - Add run-tests.yml to SharpIDE.sln for project visibility This ensures code quality is maintained through continuous testing of the entire solution. --- .github/workflows/create-release.yml | 2 +- .github/workflows/run-tests.yml | 45 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 3b18a85a..d0e42bc5 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -12,7 +12,7 @@ jobs: execute-parallel-pipeline: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-dotnet@v5 - uses: chickensoft-games/setup-godot@v2 with: diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 00000000..769227e2 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,45 @@ +name: Build and Run Tests for the Whole Solution +on: + push: + branches-ignore: + - main + paths: + - ".github/workflows/run-tests.yml" + pull_request: + paths: + - ".github/workflows/run-tests.yml" + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: 10.0.x + + - name: Setup Godot + uses: chickensoft-games/setup-godot@v2 + with: + version: 4.5.1 + use-dotnet: true + include-templates: true + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + - name: Test + run: dotnet test --no-restore --no-build --verbosity normal From 8f1b56d26ba2ad8b1f95dbcb4c5db0b006c796f4 Mon Sep 17 00:00:00 2001 From: moheladwy Date: Wed, 10 Dec 2025 00:48:46 +0200 Subject: [PATCH 2/3] fix: Remove unnecessary path filters from workflow triggers --- .github/workflows/run-tests.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 769227e2..bc13a9a9 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -3,11 +3,7 @@ on: push: branches-ignore: - main - paths: - - ".github/workflows/run-tests.yml" pull_request: - paths: - - ".github/workflows/run-tests.yml" branches: - main workflow_dispatch: From 4c4dd5417618cf72b3cb92c6ae3db4c08d3933e9 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Sat, 13 Dec 2025 12:14:06 +1000 Subject: [PATCH 3/3] Update SharpIDE.slnx --- SharpIDE.slnx | 1 + 1 file changed, 1 insertion(+) diff --git a/SharpIDE.slnx b/SharpIDE.slnx index bf1e474c..35487877 100644 --- a/SharpIDE.slnx +++ b/SharpIDE.slnx @@ -2,6 +2,7 @@ +