From 0de2e94d570e563e6d656290536d4832c9e20560 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Wed, 30 Dec 2020 14:22:56 +0100 Subject: [PATCH] Cache packages --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a505bd4..106752a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,5 +11,17 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v1 + + - name: Cache Swift packages + uses: actions/cache@v2 + env: + cache-name: cache-swift-packages + with: + path: + - .build/checkouts + - .build/repositories + - .build/workspace-state.json + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Package.resolved') }} + - name: Run tests run: swift test