Skip to content

Commit b9736ba

Browse files
Attempt to fix GHA
1 parent 7ca93af commit b9736ba

File tree

2 files changed

+38
-11
lines changed

2 files changed

+38
-11
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
6-
modern:
6+
moderate-modern:
77
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
88
runs-on: ${{ matrix.operating-system }}
99
strategy:
1010
matrix:
1111
operating-system: ['ubuntu-latest']
1212
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']
13-
phpunit-versions: ['latest']
13+
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
@@ -20,14 +20,11 @@ jobs:
2020
with:
2121
php-version: ${{ matrix.php-versions }}
2222
extensions: mbstring, intl, sodium
23-
ini-values: post_max_size=256M, max_execution_time=180
24-
tools: psalm:4, phpunit:${{ matrix.phpunit-versions }}
23+
ini-values: error_reporting=-1, display_errors=On
24+
coverage: none
2525

26-
- name: Install dependencies
27-
run: composer install
26+
- name: Install Composer dependencies
27+
uses: "ramsey/composer-install@v2"
2828

2929
- name: PHPUnit tests
30-
run: phpunit
31-
32-
- name: Static Analysis
33-
run: psalm --output-format=github
30+
run: vendor/bin/phpunit

.github/workflows/psalm.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Psalm
2+
3+
on: [push]
4+
5+
jobs:
6+
psalm:
7+
name: Psalm on PHP ${{ matrix.php-versions }}
8+
runs-on: ${{ matrix.operating-system }}
9+
strategy:
10+
matrix:
11+
operating-system: ['ubuntu-latest']
12+
php-versions: ['8.3']
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php-versions }}
21+
tools: psalm:4
22+
coverage: none
23+
24+
- name: Install Composer dependencies
25+
uses: "ramsey/composer-install@v2"
26+
with:
27+
composer-options: --no-dev
28+
29+
- name: Static Analysis
30+
run: psalm

0 commit comments

Comments
 (0)