diff --git a/.github/workflows/browser-testing.yml b/.github/workflows/browser-testing.yml index 6d87a4996..e9f6d6166 100644 --- a/.github/workflows/browser-testing.yml +++ b/.github/workflows/browser-testing.yml @@ -28,6 +28,18 @@ jobs: - name: Install Google Chrome run: sudo apt-get install google-chrome-stable + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules-browser-tests + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/automated/browser/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Run Browser tests uses: nick-fields/retry@v2 with: diff --git a/.github/workflows/build-storybook.yml b/.github/workflows/build-storybook.yml index 998fa5f05..de893e986 100644 --- a/.github/workflows/build-storybook.yml +++ b/.github/workflows/build-storybook.yml @@ -14,6 +14,18 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules-bundle-web-app + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('web/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Install and Build run: | # Install npm packages and build the Storybook files cd web diff --git a/.github/workflows/bundle-web.yml b/.github/workflows/bundle-web.yml index 78017f16b..83b5bd83c 100644 --- a/.github/workflows/bundle-web.yml +++ b/.github/workflows/bundle-web.yml @@ -18,6 +18,18 @@ jobs: with: concurrent_skipping: 'same_content_newer' + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules-bundle-web-app + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('web/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Bundle web app (next.js build) uses: actions/checkout@v3 - run: build/web/bundleWeb.sh diff --git a/.github/workflows/hls-tests.yml b/.github/workflows/hls-tests.yml index 37a055db1..53d100cf7 100644 --- a/.github/workflows/hls-tests.yml +++ b/.github/workflows/hls-tests.yml @@ -29,6 +29,18 @@ jobs: with: go-version: '1.18.8' + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules-hls-tests + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/automated/hls/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Run HLS tests uses: nick-fields/retry@v2 with: diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index dd6c54994..cd235df4f 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -19,6 +19,18 @@ jobs: with: go-version: '1.18.8' + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules-screenshots + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/automated/screenshots/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Automate screenshots uses: nick-fields/retry@v2 with: diff --git a/.github/workflows/test-webapp-build.yaml b/.github/workflows/test-webapp-build.yaml index f426404eb..0cb937f5a 100644 --- a/.github/workflows/test-webapp-build.yaml +++ b/.github/workflows/test-webapp-build.yaml @@ -22,7 +22,7 @@ jobs: uses: fkirc/skip-duplicate-actions@v5 with: concurrent_skipping: 'same_content_newer' - + - name: Checkout uses: actions/checkout@v3 with: @@ -31,6 +31,18 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} fetch-depth: 0 + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules-bundle-web-app + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('web/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Install Dependencies run: npm install