Skip to content

Commit b50fe35

Browse files
exaby73transistive
authored andcommitted
ci: Use env with composer action
1 parent f66b541 commit b50fe35

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches:
55
- master
66
pull_request:
7+
branches:
8+
- master
79

810
jobs:
911
build:
@@ -28,11 +30,12 @@ jobs:
2830
with:
2931
php-version: ${{ matrix.php }}
3032

31-
- name: Install symfony/flex
32-
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex
33-
34-
- name: Composer update on php ${{ matrix.php }} and symfony ${{ matrix.sf_version }}
35-
run: export SYMFONY_REQUIRE=${{ matrix.sf_version }} composer update
33+
- name: Install dependencies
34+
uses: php-actions/composer@v2
35+
with:
36+
php_version: ${{ matrix.php }}
37+
env:
38+
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
3639

3740
- uses: php-actions/phpunit@v3
3841
with:

0 commit comments

Comments
 (0)