Skip to content

Commit

Permalink
Add cache steps
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jan 5, 2025
1 parent 136fd8f commit 6643a23
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/mmbm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,22 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Restore .build
id: "restore-build"
uses: actions/cache/restore@v4
with:
path: .build
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: Cache .build
if: steps.restore-build.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: .build
key: "swiftpm-build-${{ runner.os }}-${{ github.event.pull_request.base.sha || github.event.after }}"

# Process the code coverage report, etc...

0 comments on commit 6643a23

Please sign in to comment.