From a72ca482fc9188bfacb81ff79c2860b02ee754c8 Mon Sep 17 00:00:00 2001 From: Piotr Synowiec Date: Sat, 26 Nov 2022 16:43:37 +0100 Subject: [PATCH] statistics: gha artifacts --- .github/workflows/test.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 192bbb3..d428681 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: name: 'Tests' strategy: matrix: - php: ['8.1.12'] + php: ['8.1.13'] runs-on: 'ubuntu-20.04' env: @@ -26,6 +26,7 @@ jobs: path: 'php-ext-gsl' - uses: actions/cache@v3 + if: ${{ always() }} with: path: ~/build-cache/php key: ${{ runner.os }}-${{ matrix.php }} @@ -37,4 +38,15 @@ jobs: run: './php-ext-gsl/.github/workflows/test/build-php-ext-gsl.sh' - name: 'Run tests' - run: './php-ext-gsl/.github/workflows/test/tests.sh' \ No newline at end of file + run: './php-ext-gsl/.github/workflows/test/tests.sh' + + - name: Archive test errors + if: ${{ failure() }} + uses: actions/upload-artifact@v3 + with: + name: test-errors + path: php-ext-gsl/tests/*.diff + retention-days: 5 + - name: Download all workflow run artifacts + if: ${{ failure() }} + uses: actions/download-artifact@v3 \ No newline at end of file