Skip to content

Commit da8d4f5

Browse files
committed
github actions
1 parent 1f7504a commit da8d4f5

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/php.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
tools: composer:v2
4646

4747
- name: Determine composer cache directory on Linux
48-
if: matrix.os == 'ubuntu-latest'
48+
if: matrix.os != 'windows-latest'
4949
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
5050

5151
- name: Determine composer cache directory on Windows
@@ -62,12 +62,16 @@ jobs:
6262
- name: Validate composer.json and composer.lock
6363
run: composer validate --ansi
6464

65-
- name: Install dependencies
66-
if: steps.composer-cache.outputs.cache-hit != 'true'
65+
- name: Install dependencies (Linux)
66+
if: matrix.os != 'windows-latest'
6767
run: |
6868
make install
6969
composer require symfony/yaml:"${YAML}" --prefer-dist --no-interaction --ansi
7070
71+
- name: Install dependencies (Windows)
72+
if: matrix.os == 'windows-latest'
73+
run: make install
74+
7175
- name: Validate test data
7276
run: make lint
7377

0 commit comments

Comments
 (0)