From 93192c9f31e9c6d8ec65b2432e1489965ffe673d Mon Sep 17 00:00:00 2001 From: MahdiBM Date: Sun, 5 Jan 2025 19:49:38 +0330 Subject: [PATCH] optimize build step --- .github/workflows/mmbm-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mmbm-tests.yml b/.github/workflows/mmbm-tests.yml index eda99833..3630e811 100644 --- a/.github/workflows/mmbm-tests.yml +++ b/.github/workflows/mmbm-tests.yml @@ -25,7 +25,7 @@ jobs: restore-keys: "swiftpm-build-${{ runner.os }}-" - name: Build package - run: swift build + run: swift build --build-tests --enable-code-coverage - name: Cache .build if: steps.restore-build.outputs.cache-hit != 'true' @@ -35,6 +35,6 @@ jobs: key: "swiftpm-build-${{ runner.os }}-${{ github.event.pull_request.base.sha || github.event.after }}" - name: Run unit tests - run: swift test --enable-code-coverage + run: swift test --skip-build --enable-code-coverage # Process the code coverage report, etc...