From 2b369ee2ee919c88639dbd23ffaea248365a103d Mon Sep 17 00:00:00 2001 From: idubnori Date: Thu, 31 Jul 2025 02:26:44 +0000 Subject: [PATCH 1/2] init of github actions config --- .github/workflows/parallel-testing-ci.yml | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/parallel-testing-ci.yml diff --git a/.github/workflows/parallel-testing-ci.yml b/.github/workflows/parallel-testing-ci.yml new file mode 100644 index 0000000..7247eb4 --- /dev/null +++ b/.github/workflows/parallel-testing-ci.yml @@ -0,0 +1,48 @@ +name: Parallel Testing CI + +on: + schedule: + - cron: '0 3 * * 1' + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + parallel-testing-ci: + name: Run tests in parallel + runs-on: ubuntu-latest + strategy: + matrix: + slice: [1, 2, 3, 4, 5] + env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET 8.0.x + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Install dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + - name: List tests and create slicing filter + id: slicing + run: | + tests=$(dotnet test . --no-build --list-tests | grep Test_) + bash create_slicing_filter_condition.sh $tests + echo "targetTestsFilter=$(cat targetTestsFilter.txt)" >> $GITHUB_ENV + + - name: Echo slicing filter condition + run: echo "Slicing filter condition: ${{ env.targetTestsFilter }}" + + - name: Test + run: dotnet test ./SliceTests/SliceTests.csproj --no-build --filter "$targetTestsFilter" From d7a72072f116bd8ed8ee7c2db8775846aa46a383 Mon Sep 17 00:00:00 2001 From: idubnori Date: Thu, 31 Jul 2025 02:46:59 +0000 Subject: [PATCH 2/2] fix... --- .github/workflows/parallel-testing-ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/parallel-testing-ci.yml b/.github/workflows/parallel-testing-ci.yml index 7247eb4..249a1f0 100644 --- a/.github/workflows/parallel-testing-ci.yml +++ b/.github/workflows/parallel-testing-ci.yml @@ -41,8 +41,5 @@ jobs: bash create_slicing_filter_condition.sh $tests echo "targetTestsFilter=$(cat targetTestsFilter.txt)" >> $GITHUB_ENV - - name: Echo slicing filter condition - run: echo "Slicing filter condition: ${{ env.targetTestsFilter }}" - - name: Test run: dotnet test ./SliceTests/SliceTests.csproj --no-build --filter "$targetTestsFilter"