From 3ce6eabe5fea650fe4b8ab9c2ced06ac6a332a51 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Fri, 19 Jun 2026 11:26:31 +0200 Subject: [PATCH 1/2] run tests in ci --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ffd533b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + + - name: Setup .NET + uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 + with: + global-json-file: src/global.json + dotnet-quality: preview + + - name: Build + run: dotnet build src --configuration Release + + - name: Test + run: dotnet test src --configuration Release --no-build --no-restore From f9864bec819afcb31215311bad37f4b116bd49e3 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Fri, 19 Jun 2026 11:29:27 +0200 Subject: [PATCH 2/2] move sampleexcludes into RunSample --- src/Tests/Tests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tests/Tests.cs b/src/Tests/Tests.cs index 9cd00ae..e648c66 100644 --- a/src/Tests/Tests.cs +++ b/src/Tests/Tests.cs @@ -226,8 +226,6 @@ await Verify(new }); } -#endif - static void PatchDependencies(string targetPath) { var depsFile = Path.Combine(targetPath, "SampleApp.deps.json"); @@ -242,6 +240,8 @@ static void PatchDependencies(string targetPath) File.WriteAllText(depsFile, text); } +#endif + static bool[] bools = {true, false}; static readonly string tempPath;