Skip to content

Commit a72ca48

Browse files
committed
statistics: gha artifacts
1 parent 70c8793 commit a72ca48

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Diff for: .github/workflows/test.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: 'Tests'
1515
strategy:
1616
matrix:
17-
php: ['8.1.12']
17+
php: ['8.1.13']
1818

1919
runs-on: 'ubuntu-20.04'
2020
env:
@@ -26,6 +26,7 @@ jobs:
2626
path: 'php-ext-gsl'
2727

2828
- uses: actions/cache@v3
29+
if: ${{ always() }}
2930
with:
3031
path: ~/build-cache/php
3132
key: ${{ runner.os }}-${{ matrix.php }}
@@ -37,4 +38,15 @@ jobs:
3738
run: './php-ext-gsl/.github/workflows/test/build-php-ext-gsl.sh'
3839

3940
- name: 'Run tests'
40-
run: './php-ext-gsl/.github/workflows/test/tests.sh'
41+
run: './php-ext-gsl/.github/workflows/test/tests.sh'
42+
43+
- name: Archive test errors
44+
if: ${{ failure() }}
45+
uses: actions/upload-artifact@v3
46+
with:
47+
name: test-errors
48+
path: php-ext-gsl/tests/*.diff
49+
retention-days: 5
50+
- name: Download all workflow run artifacts
51+
if: ${{ failure() }}
52+
uses: actions/download-artifact@v3

0 commit comments

Comments
 (0)