From b51b1409aea334984f64a822722d2e632ba05d8f Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Tue, 15 Mar 2022 13:15:55 +0100 Subject: [PATCH] Update workflows with wallet db cache --- .github/workflows/e2e-docker.yml | 10 ++++++++++ .github/workflows/e2e-linux.yml | 9 +++++++++ .github/workflows/e2e-macos.yml | 9 +++++++++ .github/workflows/e2e-windows.yml | 9 +++++++++ 4 files changed, 37 insertions(+) diff --git a/.github/workflows/e2e-docker.yml b/.github/workflows/e2e-docker.yml index e21ac9aefe6..b5255189f3f 100644 --- a/.github/workflows/e2e-docker.yml +++ b/.github/workflows/e2e-docker.yml @@ -70,6 +70,16 @@ jobs: node-db-docker-${{ env.NETWORK }}- node-db-Linux-${{ env.NETWORK }}- + - name: 💾 Cache wallet db + id: cache-wallet + uses: actions/cache@v2.1.4 + with: + path: test/e2e/state/wallet_db/${{ env.NETWORK }} + key: wallet-db-${{ runner.os }}-${{ env.NETWORK }}-${{ steps.date-time.outputs.value }} + restore-keys: | + wallet-db-${{ runner.os }}-${{ env.NETWORK }}- + wallet-db-Linux-${{ env.NETWORK }}- + - name: 🚀 Start node and wallet run: | echo "Wallet: $WALLET" diff --git a/.github/workflows/e2e-linux.yml b/.github/workflows/e2e-linux.yml index 1c06af98307..b31b6f5d5ab 100644 --- a/.github/workflows/e2e-linux.yml +++ b/.github/workflows/e2e-linux.yml @@ -48,6 +48,15 @@ jobs: restore-keys: | node-db-${{ runner.os }}-${{ env.NETWORK }}- + - name: 💾 Cache wallet db + id: cache-wallet + uses: actions/cache@v2.1.4 + with: + path: test/e2e/state/wallet_db/${{ env.NETWORK }} + key: wallet-db-${{ runner.os }}-${{ env.NETWORK }}-${{ steps.date-time.outputs.value }} + restore-keys: | + wallet-db-${{ runner.os }}-${{ env.NETWORK }}- + - name: ⚙️ Setup (get latest bins and configs and decode fixtures) run: rake setup[$NETWORK,$PR] diff --git a/.github/workflows/e2e-macos.yml b/.github/workflows/e2e-macos.yml index b5195fc833f..a7567b65cbd 100644 --- a/.github/workflows/e2e-macos.yml +++ b/.github/workflows/e2e-macos.yml @@ -52,6 +52,15 @@ jobs: node-db-${{ runner.os }}-${{ env.NETWORK }}- node-db-Linux-${{ env.NETWORK }}- + - name: 💾 Cache wallet db + id: cache-wallet + uses: actions/cache@v2.1.4 + with: + path: test/e2e/state/wallet_db/${{ env.NETWORK }} + key: wallet-db-${{ runner.os }}-${{ env.NETWORK }}-${{ steps.date-time.outputs.value }} + restore-keys: | + wallet-db-${{ runner.os }}-${{ env.NETWORK }}- + - name: ⚙️ Setup (get latest bins and configs and decode fixtures) run: rake setup[$NETWORK,$PR] diff --git a/.github/workflows/e2e-windows.yml b/.github/workflows/e2e-windows.yml index 82bedd03532..47a4aee4ead 100644 --- a/.github/workflows/e2e-windows.yml +++ b/.github/workflows/e2e-windows.yml @@ -55,6 +55,15 @@ jobs: node-db-${{ runner.os }}-${{ env.NETWORK }}- node-db-Linux-${{ env.NETWORK }}- + - name: 💾 Cache wallet db + id: cache-wallet + uses: actions/cache@v2.1.4 + with: + path: test/e2e/state/wallet_db/${{ env.NETWORK }} + key: wallet-db-${{ runner.os }}-${{ env.NETWORK }}-${{ steps.date-time.outputs.value }} + restore-keys: | + wallet-db-${{ runner.os }}-${{ env.NETWORK }}- + - name: ⚙️ Setup (get latest bins and configs and decode fixtures) run: rake setup[%NETWORK%,%PR%]