Skip to content

Commit 44d2788

Browse files
committed
:octocat: CI update
1 parent bef8184 commit 44d2788

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111

1212
name: "Continuous Integration"
1313

14+
env:
15+
PHP_EXTENSIONS: curl, json, sodium
16+
PHP_INI_VALUES: memory_limit=-1, error_reporting=-1, display_errors=On
17+
1418
jobs:
1519

1620
static-code-analysis:
@@ -34,21 +38,24 @@ jobs:
3438

3539
steps:
3640
- name: "Checkout"
37-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
3842

3943
- name: "Install PHP"
4044
uses: shivammathur/setup-php@v2
4145
with:
4246
php-version: ${{ matrix.php-version }}
43-
tools: pecl
47+
extensions: ast, ${{ env.PHP_EXTENSIONS }}
48+
ini-values: ${{ env.PHP_INI_VALUES }}
4449
coverage: none
45-
extensions: ast, curl, gmp, json, sodium
50+
51+
- name: "Validate composer.json"
52+
run: composer validate --ansi --strict
4653

4754
- name: "Install dependencies with composer"
48-
uses: ramsey/composer-install@v2
55+
uses: ramsey/composer-install@v3
4956

5057
- name: "Run phan"
51-
run: php vendor/bin/phan
58+
run: php vendor/bin/phan --target-php-version=${{ matrix.php-version }}
5259

5360

5461
tests:
@@ -71,24 +78,26 @@ jobs:
7178

7279
steps:
7380
- name: "Checkout"
74-
uses: actions/checkout@v3
81+
uses: actions/checkout@v4
7582

7683
- name: "Install PHP with extensions"
7784
uses: shivammathur/setup-php@v2
7885
with:
7986
php-version: ${{ matrix.php-version }}
87+
extensions: ${{ env.PHP_EXTENSIONS }}
88+
ini-values: ${{ env.PHP_INI_VALUES }}
8089
coverage: pcov
81-
extensions: curl, gmp, json, sodium
8290

8391
- name: "Install dependencies with composer"
84-
uses: ramsey/composer-install@v2
92+
uses: ramsey/composer-install@v3
8593

8694
- name: "Run tests with phpunit"
8795
run: php vendor/bin/phpunit --colors=always --configuration=phpunit.xml.dist
8896

8997
- name: "Send code coverage report to Codecov.io"
90-
uses: codecov/codecov-action@v3
98+
uses: codecov/codecov-action@v4
9199
with:
100+
token: ${{ secrets.CODECOV_TOKEN }}
92101
files: .build/coverage/clover.xml
93102

94103
- name: "Send code coverage report to Codacy"

0 commit comments

Comments
 (0)