Skip to content

A platform for community discussion. Free, open, simple.

DEV: Cache plugin gems when running plugin test jobs in Github CI (#24535)

Alan Guo Xiang Tan585e010af998
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 03b803d4429..0bf9d527439 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -117,6 +117,12 @@ jobs:
if: matrix.target == 'plugins'
run: bin/rake plugin:pull_compatible_all
+ - name: Plugin gems cache
+ uses: actions/cache@v3
+ with:
+ path: plugins/*/gems
+ key: ${{ runner.os }}-plugin-gems-${{matrix.ruby}}-${{ hashFiles('plugins/*/plugin.rb') }}
+
- name: Checkout official themes
if: matrix.target == 'themes' && matrix.build_type == 'system'
run: bin/rake themes:clone_all_official