From ad9b18489655135e2b8a9e57d21da16b618eaccf Mon Sep 17 00:00:00 2001 From: Balint Morasz Date: Thu, 26 Oct 2023 13:34:38 +0200 Subject: [PATCH] ci: cache node_modules test --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60189e4..379b47b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,10 +18,21 @@ jobs: with: node-version: 18.x - - name: Yarn + - name: Yarn Install run: | cd ./frontend yarn install --frozen-lockfiles + - name: Cache NPM packages + uses: actions/cache@v3 + with: + path: | + ./frontend/node_modules + restore-keys: | + npm-${{ hashFiles('./frontend/node_modules/package-lock.json') }} + npm- + - name: Yarn Test + run: | + cd ./frontend ./compile-less.sh yarn test yarn build