From 756f7dd214321ace90cd64fbf67a5ba25343c3c1 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 6 Jan 2021 18:08:03 +0700 Subject: [PATCH] Ensure clean up composer.json & build dir after run coverage weekly (#5099) * Ensure clean up composer.json after run coverage weekly as it use require --dev (update composer.json) during run. * clean build dir as well --- .github/workflows/weekly_code_coverage.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/weekly_code_coverage.yaml b/.github/workflows/weekly_code_coverage.yaml index 9d1dd363967..c9a923ad283 100644 --- a/.github/workflows/weekly_code_coverage.yaml +++ b/.github/workflows/weekly_code_coverage.yaml @@ -26,6 +26,10 @@ jobs: # Coveralls.io composer require --dev php-coveralls/php-coveralls:^2.4 vendor/bin/php-coveralls --coverage_clover=clover.xml -v + + # clean up + git checkout . + git clean -xfd build env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} branch: 'master'