Skip to content

Commit eecb8e3

Browse files
committed
:octocat: CI update
1 parent 0147ca3 commit eecb8e3

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:
@@ -31,21 +35,24 @@ jobs:
3135

3236
steps:
3337
- name: "Checkout"
34-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3539

3640
- name: "Install PHP"
3741
uses: shivammathur/setup-php@v2
3842
with:
3943
php-version: ${{ matrix.php-version }}
40-
tools: pecl
44+
extensions: ast, ${{ env.PHP_EXTENSIONS }}
45+
ini-values: ${{ env.PHP_INI_VALUES }}
4146
coverage: none
42-
extensions: ast, curl, gmp, json, sodium
47+
48+
- name: "Validate composer.json"
49+
run: composer validate --ansi --strict
4350

4451
- name: "Install dependencies with composer"
45-
uses: ramsey/composer-install@v2
52+
uses: ramsey/composer-install@v3
4653

4754
- name: "Run phan"
48-
run: php vendor/bin/phan
55+
run: php vendor/bin/phan --target-php-version=${{ matrix.php-version }}
4956

5057

5158
tests:
@@ -65,24 +72,26 @@ jobs:
6572

6673
steps:
6774
- name: "Checkout"
68-
uses: actions/checkout@v3
75+
uses: actions/checkout@v4
6976

7077
- name: "Install PHP with extensions"
7178
uses: shivammathur/setup-php@v2
7279
with:
7380
php-version: ${{ matrix.php-version }}
81+
extensions: ${{ env.PHP_EXTENSIONS }}
82+
ini-values: ${{ env.PHP_INI_VALUES }}
7483
coverage: pcov
75-
extensions: curl, gmp, json, sodium
7684

7785
- name: "Install dependencies with composer"
78-
uses: ramsey/composer-install@v2
86+
uses: ramsey/composer-install@v3
7987

8088
- name: "Run tests with phpunit"
8189
run: php vendor/bin/phpunit --colors=always --configuration=phpunit.xml.dist
8290

8391
- name: "Send code coverage report to Codecov.io"
84-
uses: codecov/codecov-action@v3
92+
uses: codecov/codecov-action@v4
8593
with:
94+
token: ${{ secrets.CODECOV_TOKEN }}
8695
files: .build/coverage/clover.xml
8796

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

0 commit comments

Comments
 (0)