From 7487b51bd4c6c34cbb9dfe44a9a29ac368908b64 Mon Sep 17 00:00:00 2001 From: webeweb Date: Tue, 2 Feb 2021 13:50:41 +0100 Subject: [PATCH] Try GitHub actions configuration --- .github/workflows/build.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c719bc..f7b58d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,13 +49,14 @@ jobs: COVERALLS_PARALLEL: true run: php coveralls.phar -v - - name: "Artifact" + - name: "Compress artifact" + run: zip -r build/logs.zip build/logs -x build/logs/clover.xml + + - name: "Upload artifact" uses: actions/upload-artifact@v2 with: - name: "coverage-${{ matrix.php-version }}" - path: | - build/logs/ - !build/logs/clover.xml + name: "coverage-${{ matrix.php-version }}.zip" + path: build/logs.zip coverage: name: "Coverage" @@ -101,10 +102,11 @@ jobs: - name: "Metrics" run: php phpmetrics.phar --report-html=build/logs/ src/ --git --junit=build/logs/junit.xml - - name: "Artifact" + - name: "Compress artifact" + run: zip -r build/logs.zip build/logs -x build/logs/junit.xml + + - name: "Upload artifact" uses: actions/upload-artifact@v2 with: - name: "metrics" - path: | - build/logs/ - !build/logs/junit.xml + name: "metrics.zip" + path: build/logs.zip