From dbe0b04d20f00a97cdf30ceb2e99f9fe0a246aa2 Mon Sep 17 00:00:00 2001 From: Alex Garnett Date: Tue, 28 Jan 2025 12:16:39 -0800 Subject: [PATCH 1/2] add testing-code test to CI --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6cd6299..f40a381 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,11 @@ jobs: run: dotnet format --verify-no-changes working-directory: exercises/testing-code/solution/Worker + - name: Test testing-code + if: ${{ matrix.checkTarget }} + run: dotnet test + working-directory: exercises/testing-code/solution/Tests + - name: Build using-records run: dotnet build working-directory: samples/using-records/Worker From 5501260332d2a3a9ac150e3c0e87c174496871c2 Mon Sep 17 00:00:00 2001 From: Alex Garnett Date: Tue, 28 Jan 2025 12:19:00 -0800 Subject: [PATCH 2/2] remove if conditions from tests --- .github/workflows/ci.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f40a381..c5d6d63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,6 @@ jobs: working-directory: exercises/durable-execution/solution/Worker - name: Check format durable-executon - if: ${{ matrix.checkTarget }} run: dotnet format --verify-no-changes working-directory: exercises/durable-execution/solution/Worker @@ -43,7 +42,6 @@ jobs: working-directory: exercises/debug-activity/solution/Worker - name: Check format debug-activity - if: ${{ matrix.checkTarget }} run: dotnet format --verify-no-changes working-directory: exercises/debug-activity/solution/Worker @@ -52,12 +50,10 @@ jobs: working-directory: exercises/testing-code/solution/Worker - name: Check format testing-code - if: ${{ matrix.checkTarget }} run: dotnet format --verify-no-changes working-directory: exercises/testing-code/solution/Worker - name: Test testing-code - if: ${{ matrix.checkTarget }} run: dotnet test working-directory: exercises/testing-code/solution/Tests @@ -66,7 +62,6 @@ jobs: working-directory: samples/using-records/Worker - name: Check format using-records - if: ${{ matrix.checkTarget }} run: dotnet format --verify-no-changes working-directory: samples/using-records/Worker @@ -75,6 +70,5 @@ jobs: working-directory: samples/age-estimation/Worker - name: Check format age-estimation - if: ${{ matrix.checkTarget }} run: dotnet format --verify-no-changes working-directory: samples/age-estimation/Worker \ No newline at end of file