From 141f79475002006af03c5201cf7019287f36e39d Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Tue, 30 Nov 2021 09:01:22 +0100 Subject: [PATCH] Added `yarn` cache to CI workflows (#13716) --- .github/workflows/canary.yml | 1 + .github/workflows/release.yml | 1 + .github/workflows/test.yml | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 4cb0da47fa41..42e49cbddd66 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -16,6 +16,7 @@ jobs: FORCE_COLOR: 0 with: node-version: '14.17.0' + cache: yarn - name: Set up Git run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba4b0f762caf..17aff82f6fd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,7 @@ jobs: FORCE_COLOR: 0 with: node-version: '14' + cache: yarn - run: yarn - run: grunt release --skip-tests diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 66a1527f86f4..c7c8b7284c81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: FORCE_COLOR: 0 with: node-version: '14.17.0' + cache: yarn - run: yarn - run: yarn lint - uses: daniellockyer/action-slack-build@master @@ -55,6 +56,7 @@ jobs: FORCE_COLOR: 0 with: node-version: '14.17.0' + cache: yarn - name: Shutdown MySQL run: sudo service mysql stop @@ -98,6 +100,7 @@ jobs: FORCE_COLOR: 0 with: node-version: ${{ matrix.node }} + cache: yarn - name: Shutdown MySQL run: sudo service mysql stop @@ -184,6 +187,7 @@ jobs: FORCE_COLOR: 0 with: node-version: '12.22.1' + cache: yarn - run: npm install -g ghost-cli@latest - run: npm --no-git-tag-version version minor # We need to artificially bump the minor version to get migrations to run