From 777747d5e7b7d1a7c4704aa41cc720c0efffa5fb Mon Sep 17 00:00:00 2001 From: viktorstrate Date: Fri, 23 Apr 2021 21:51:47 +0200 Subject: [PATCH] ghaction ui test fix cmd + add cache --- .github/workflows/tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ba21e84..46bf740 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -122,6 +122,14 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Cache NPM dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: @@ -131,4 +139,4 @@ jobs: run: npm clean-install - name: Test - run: npm test:ci + run: npm run test:ci