Skip to content

Commit 2d9a799

Browse files
authored
feat(ci): add mago to CI pipeline (#2020)
1 parent bce92ae commit 2d9a799

7 files changed

Lines changed: 1845 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373

7474
# These dependencies are not used running the tests but can cause deprecation warnings so we remove them before running the tests
7575
- name: Remove unused dependencies
76-
run: composer remove phpstan/phpstan friendsofphp/php-cs-fixer --dev --no-interaction --no-update
76+
run: composer remove carthage-software/mago phpstan/phpstan friendsofphp/php-cs-fixer --dev --no-interaction --no-update
7777

7878
- name: Remove RoadRunner dependencies on unsupported PHP versions
7979
if: ${{ matrix.os == 'windows-latest' || matrix.php.version == '7.2' || matrix.php.version == '7.3' || matrix.php.version == '7.4' || matrix.php.version == '8.0' }}
@@ -242,4 +242,3 @@ jobs:
242242

243243
- name: Run PHPUnit tests (excluding PHPT)
244244
run: vendor/bin/phpunit tests --test-suffix Test.php --verbose
245-

.github/workflows/static-analysis.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,20 @@ jobs:
4747
- name: Run script
4848
run: vendor/bin/phpstan analyse
4949

50+
mago:
51+
name: Mago
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Checkout
55+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
56+
57+
- name: Setup PHP
58+
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
59+
with:
60+
php-version: '8.4'
61+
62+
- name: Install dependencies
63+
run: composer update --no-progress --no-interaction --prefer-dist
64+
65+
- name: Run script
66+
run: composer mago

0 commit comments

Comments
 (0)