Repository navigation
39 lines (38 loc) · 1.47 KB
/
Copy paththrows.yaml
File metadata and controls
39 lines (38 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Throws
on: [push, pull_request]
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: [ '8.4' ]
fail-fast: false
name: Intermediate throws on PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
tools: 'composer:v2'
extensions: mbstring, posix, dom, soap
coverage: xdebug
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest
- name: Run the throw counting tests
run: composer test:throws
- name: Report and fail on intermediate throws over the whole suite
run: |
status=0
composer throws:report > throws-report.txt 2>&1 || status=$?
cat throws-report.txt
{
echo '## Intermediate throws'
echo
echo '```'
sed -n '/^Intermediate throws:/,$p' throws-report.txt
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
exit $status