Skip to content

Commit

Permalink
separate build step from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jan 5, 2025
1 parent 6daa10f commit 664c04d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/mmbm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
key: "swiftpm-build-${{ runner.os }}-${{ github.event.pull_request.base.sha || github.event.after }}"
restore-keys: "swiftpm-build-${{ runner.os }}-"

- name: Run unit tests
run: swift test --enable-code-coverage
- name: Build package
run: swift build

- name: Cache .build
if: steps.restore-build.outputs.cache-hit != 'true'
Expand All @@ -34,4 +34,7 @@ jobs:
path: .build
key: "swiftpm-build-${{ runner.os }}-${{ github.event.pull_request.base.sha || github.event.after }}"

- name: Run unit tests
run: swift test --enable-code-coverage

# Process the code coverage report, etc...

0 comments on commit 664c04d

Please sign in to comment.