Skip to content

Commit

Permalink
fix windows env variables issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Nov 22, 2022
1 parent b0bc722 commit 90dfc73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ jobs:
extensions: fileinfo, gd
coverage: xdebug

- name: Get composer cache directory
- name: Get composer cache directory for Windows
if: runner.os == 'Windows'
run: echo "COMPOSER_DIR=$(composer config cache-files-dir)" >> $env:GITHUB_ENV

- name: Get composer cache directory for other OS
if: runner.os != 'Windows'
run: echo "COMPOSER_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV

- name: Cache dependencies
Expand Down

0 comments on commit 90dfc73

Please sign in to comment.