From 5993e1dce02e16f1bc60ac031801c4a1f030b235 Mon Sep 17 00:00:00 2001 From: Kharhamel Date: Thu, 3 Sep 2020 16:38:19 +0200 Subject: [PATCH 1/5] changed the cron to run every day at 3am --- .github/workflows/auto-regenerate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-regenerate.yml b/.github/workflows/auto-regenerate.yml index e82e60f1..7c730af6 100644 --- a/.github/workflows/auto-regenerate.yml +++ b/.github/workflows/auto-regenerate.yml @@ -3,7 +3,7 @@ name: "Auto Regenerate" on: schedule: - - cron: '0 0 * * 3' + - cron: '0 3 * * *' jobs: From 837b27be402917e12ed422bc9cd5aa166e176964 Mon Sep 17 00:00:00 2001 From: Kharhamel Date: Thu, 3 Sep 2020 16:42:46 +0200 Subject: [PATCH 2/5] cached the composer cache both in rector and auto-regenerate --- .github/workflows/rector-continuous-integration.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/rector-continuous-integration.yml b/.github/workflows/rector-continuous-integration.yml index 46c1e0be..5ecaafca 100644 --- a/.github/workflows/rector-continuous-integration.yml +++ b/.github/workflows/rector-continuous-integration.yml @@ -31,6 +31,13 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "${{ matrix.php-version }}" + + - name: "Cache dependencies installed with composer" + uses: "actions/cache@v1" + with: + path: "~/.composer/cache" + key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}" + restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - name: "Composer install" run: "composer install && composer rector && composer test" From fcef78691fa87fca2f8faa41941aaebdad0b7a67 Mon Sep 17 00:00:00 2001 From: Kharhamel Date: Thu, 3 Sep 2020 16:54:52 +0200 Subject: [PATCH 3/5] added a cache for the php documentation in CI workflow --- .github/workflows/continuous-integration.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 07506345..505768b6 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -33,14 +33,23 @@ jobs: coverage: "pcov" php-version: "${{ matrix.php-version }}" + - name: "Cache the php documentation" + id: cache-php-doc + uses: "actions/cache@v1" + with: + path: "generator/doc/doc-en" + key: "php-doc" + - name: "Check out salathe/phpdoc-base" uses: "actions/checkout@v2" + if: steps.cache-php-doc.outputs.cache-hit != 'true' with: path: "generator/doc/doc-en/doc-base" repository: "salathe/phpdoc-base" - name: "Check out php/doc-en" uses: "actions/checkout@v2" + if: steps.cache-php-doc.outputs.cache-hit != 'true' with: path: "generator/doc/doc-en/en" repository: "php/doc-en" From 7044a43572b9239a614cab74cdb4730613951837 Mon Sep 17 00:00:00 2001 From: Kharhamel Date: Thu, 3 Sep 2020 16:59:01 +0200 Subject: [PATCH 4/5] remove wrong composer cache from rector-ci --- .github/workflows/rector-continuous-integration.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/rector-continuous-integration.yml b/.github/workflows/rector-continuous-integration.yml index 5ecaafca..46c1e0be 100644 --- a/.github/workflows/rector-continuous-integration.yml +++ b/.github/workflows/rector-continuous-integration.yml @@ -31,13 +31,6 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "${{ matrix.php-version }}" - - - name: "Cache dependencies installed with composer" - uses: "actions/cache@v1" - with: - path: "~/.composer/cache" - key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}" - restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" - name: "Composer install" run: "composer install && composer rector && composer test" From 0b043ebffd2977f83319c4430ab1138e553d45bf Mon Sep 17 00:00:00 2001 From: Kharhamel Date: Thu, 3 Sep 2020 17:05:44 +0200 Subject: [PATCH 5/5] updated the code coverage badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7eeb5a0e..e6d4be5a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![License](https://poser.pugx.org/thecodingmachine/safe/license.svg)](https://packagist.org/packages/thecodingmachine/safe) [![Build Status](https://travis-ci.org/thecodingmachine/safe.svg?branch=master)](https://travis-ci.org/thecodingmachine/safe) [![Continuous Integration](https://github.com/thecodingmachine/safe/workflows/Continuous%20Integration/badge.svg)](https://github.com/thecodingmachine/safe/actions) -[![Coverage Status](https://coveralls.io/repos/thecodingmachine/safe/badge.svg?branch=master&service=github)](https://coveralls.io/github/thecodingmachine/safe?branch=master) +[![codecov](https://codecov.io/gh/thecodingmachine/safe/branch/master/graph/badge.svg)](https://codecov.io/gh/thecodingmachine/safe) Safe PHP ========