From 0c288ea64bfef1e667a34b0cfaf09afea4fc2dfe Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 4 Sep 2021 15:15:40 +0200 Subject: [PATCH] ci: cache webui for e2e tests Signed-off-by: Jens Langhammer --- .github/workflows/ci-main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 7f31e0a8c..21a5aceee 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -239,7 +239,13 @@ jobs: run: | scripts/ci_prepare.sh docker-compose -f tests/e2e/ci.docker-compose.yml up -d + - id: cache-web + uses: actions/cache@v1 + with: + path: web/dist + key: ${{ runner.os }}-web-${{ hashFiles('web/package-lock.json', 'web/**') }} - name: prepare web ui + if: steps.cache-web.outputs.cache-hit != 'true' run: | cd web npm i