1010 eslint :
1111 name : ESLint
1212 runs-on : ubuntu-latest
13+ timeout-minutes : 5
1314 env :
1415 LINT : 1
1516 steps :
5455 phpcs :
5556 name : PHP Code Sniffer
5657 runs-on : ubuntu-latest
58+ timeout-minutes : 5
5759 env :
5860 LINT : 1
5961 steps :
9597 phpmd :
9698 name : PHPMD
9799 runs-on : ubuntu-latest
100+ timeout-minutes : 5
98101 env :
99102 LINT : 1
100103 steps :
@@ -138,6 +141,7 @@ jobs:
138141 name : Coverage
139142 needs : eslint
140143 runs-on : ubuntu-latest
144+ timeout-minutes : 5
141145 strategy :
142146 matrix :
143147 node : ['11', '12']
@@ -209,6 +213,7 @@ jobs:
209213 name : PHPUnit
210214 needs : [phpcs, phpmd]
211215 runs-on : ubuntu-16.04
216+ timeout-minutes : 5
212217 services :
213218 mysql :
214219 image : mysql
@@ -271,6 +276,13 @@ jobs:
271276 restore-keys : |
272277 ${{ runner.os }}-composer-
273278 if : env.RUNNING
279+ - uses : actions/cache@v1
280+ with :
281+ path : .plugin
282+ key : plugin-cache-${{ github.run_id }}
283+ restore-keys : |
284+ plugin-cache-
285+ if : env.RUNNING && matrix.ACTIVATE_POPULAR_PLUGINS == 1
274286 - name : Prepare setting
275287 run : git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
276288 env :
@@ -302,6 +314,7 @@ jobs:
302314 name : Publish GitHub Pages
303315 needs : [cover, phpunit]
304316 runs-on : ubuntu-latest
317+ timeout-minutes : 10
305318 if : startsWith(github.ref, 'refs/tags/v')
306319 steps :
307320 - name : Set running flag
@@ -318,6 +331,7 @@ jobs:
318331 - uses : technote-space/load-config-action@v1
319332 with :
320333 CONFIG_FILENAME : gh-pages.json
334+ if : env.RUNNING
321335 - name : Get Yarn Cache Directory
322336 id : yarn-cache
323337 run : echo "::set-output name=dir::$(yarn cache dir)"
@@ -334,8 +348,6 @@ jobs:
334348 run : |
335349 git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci
336350 bash travis-ci/bin/deploy/gh-pages.sh
337- env :
338- TRAVIS_BUILD_DIR : ${{ github.workspace }}
339351 if : env.RUNNING
340352 - name : Deploy
341353 uses : JamesIves/github-pages-deploy-action@releases/v3
@@ -349,6 +361,7 @@ jobs:
349361 name : Upload build files
350362 needs : [cover, phpunit]
351363 runs-on : ubuntu-16.04
364+ timeout-minutes : 5
352365 if : startsWith(github.ref, 'refs/tags/v')
353366 steps :
354367 - uses : actions/checkout@v2
@@ -381,6 +394,7 @@ jobs:
381394 name : Create Release
382395 needs : [pages, releases]
383396 runs-on : ubuntu-latest
397+ timeout-minutes : 5
384398 steps :
385399 - name : Get version
386400 run : echo "::set-env name=TAG_NAME::${HEAD_REF#refs/tags/}"
@@ -407,6 +421,7 @@ jobs:
407421 name : Slack
408422 needs : publishRelease
409423 runs-on : ubuntu-latest
424+ timeout-minutes : 3
410425 if : always()
411426 steps :
412427 - uses : technote-space/workflow-conclusion-action@v1
0 commit comments