@@ -49,13 +49,26 @@ jobs:
4949 coverage : none
5050
5151 - name : Checkout code
52- uses : actions/checkout@v2
52+ uses : actions/checkout@v4
53+
54+ - name : Cache module compilation
55+ uses : actions/cache@v3
56+ with :
57+ path : /tmp/varnish-modules-${{ matrix.varnish-modules-version }}
58+ key : varnish-modules-${{ matrix.varnish-modules-version }}
5359
5460 - name : Setup Varnish and Nginx
5561 run : |
5662 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-varnish.sh
5763 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-nginx.sh
5864
65+ - name : Cache Vendor
66+ id : cache-vendor
67+ uses : actions/cache@v3
68+ with :
69+ path : vendor
70+ key : ${{ runner.os }}-vendor
71+
5972 - name : Install composer dependencies
6073 env :
6174 SYMFONY_REQUIRE : ${{ matrix.symfony-version }}
@@ -88,13 +101,26 @@ jobs:
88101 coverage : none
89102
90103 - name : Checkout code
91- uses : actions/checkout@v2
104+ uses : actions/checkout@v4
105+
106+ - name : Cache module compilation
107+ uses : actions/cache@v3
108+ with :
109+ path : /tmp/varnish-modules-${{ matrix.varnish-modules-version }}
110+ key : varnish-modules-${{ matrix.varnish-modules-version }}
92111
93112 - name : Setup Varnish and Nginx
94113 run : |
95114 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-varnish-legacy.sh
96115 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-nginx.sh
97116
117+ - name : Cache Vendor
118+ id : cache-vendor
119+ uses : actions/cache@v3
120+ with :
121+ path : vendor
122+ key : ${{ runner.os }}-vendor
123+
98124 - name : Install composer dependencies
99125 # Lowest discovery can end up with an incompatible psr7 implementation, see discussion in https://github.com/FriendsOfSymfony/FOSHttpCache/pull/567
100126 run : |
@@ -126,13 +152,20 @@ jobs:
126152 coverage : none
127153
128154 - name : Checkout code
129- uses : actions/checkout@v2
155+ uses : actions/checkout@v4
130156
131157 - name : Setup Varnish and Nginx
132158 run : |
133159 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-varnish-legacy.sh
134160 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-nginx.sh
135161
162+ - name : Cache Vendor
163+ id : cache-vendor
164+ uses : actions/cache@v3
165+ with :
166+ path : vendor
167+ key : ${{ runner.os }}-vendor
168+
136169 - name : Install composer dependencies
137170 run : |
138171 composer require --no-update --no-interaction "guzzlehttp/psr7:2.*"
@@ -163,13 +196,20 @@ jobs:
163196 coverage : none
164197
165198 - name : Checkout code
166- uses : actions/checkout@v2
199+ uses : actions/checkout@v4
167200
168201 - name : Setup Varnish and Nginx
169202 run : |
170203 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-varnish-legacy.sh
171204 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-nginx.sh
172205
206+ - name : Cache Vendor
207+ id : cache-vendor
208+ uses : actions/cache@v3
209+ with :
210+ path : vendor
211+ key : ${{ runner.os }}-vendor-lowest
212+
173213 - name : Install composer dependencies
174214 run : |
175215 composer require --no-update --no-interaction "guzzlehttp/psr7:2.*"
@@ -194,13 +234,26 @@ jobs:
194234 coverage : xdebug
195235
196236 - name : Checkout code
197- uses : actions/checkout@v2
237+ uses : actions/checkout@v4
238+
239+ - name : Cache module compilation
240+ uses : actions/cache@v3
241+ with :
242+ path : /tmp/varnish-modules-${{ matrix.varnish-modules-version }}
243+ key : varnish-modules-${{ matrix.varnish-modules-version }}
198244
199245 - name : Setup Varnish and Nginx
200246 run : |
201247 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-varnish.sh
202248 sh ${GITHUB_WORKSPACE}/.github/workflows/setup-nginx.sh
203249
250+ - name : Cache Vendor
251+ id : cache-vendor
252+ uses : actions/cache@v3
253+ with :
254+ path : vendor
255+ key : ${{ runner.os }}-vendor
256+
204257 - name : Install dependencies
205258 run : |
206259 composer require "friends-of-phpspec/phpspec-code-coverage:^6.3.0" --no-interaction --no-update
0 commit comments