Skip to content

Commit fcef786

Browse files
committed
added a cache for the php documentation in CI workflow
1 parent 837b27b commit fcef786

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,23 @@ jobs:
3333
coverage: "pcov"
3434
php-version: "${{ matrix.php-version }}"
3535

36+
- name: "Cache the php documentation"
37+
id: cache-php-doc
38+
uses: "actions/cache@v1"
39+
with:
40+
path: "generator/doc/doc-en"
41+
key: "php-doc"
42+
3643
- name: "Check out salathe/phpdoc-base"
3744
uses: "actions/checkout@v2"
45+
if: steps.cache-php-doc.outputs.cache-hit != 'true'
3846
with:
3947
path: "generator/doc/doc-en/doc-base"
4048
repository: "salathe/phpdoc-base"
4149

4250
- name: "Check out php/doc-en"
4351
uses: "actions/checkout@v2"
52+
if: steps.cache-php-doc.outputs.cache-hit != 'true'
4453
with:
4554
path: "generator/doc/doc-en/en"
4655
repository: "php/doc-en"

0 commit comments

Comments
 (0)