1414
1515 runs-on : ubuntu-latest
1616
17+ env :
18+ PHAN_ALLOW_XDEBUG : 0
19+ PHAN_DISABLE_XDEBUG_WARN : 1
20+
1721 steps :
1822 - name : " Checkout"
1923 uses : actions/checkout@v2
2933 - name : " Update dependencies with composer"
3034 run : composer update --no-interaction --no-ansi --no-progress --no-suggest
3135
32- - name : " phan env"
33- run : |
34- echo "PHAN_ALLOW_XDEBUG=0" >> $GITHUB_ENV
35- echo "PHAN_DISABLE_XDEBUG_WARN=1" >> $GITHUB_ENV
36-
3736 - name : " Run phan"
3837 run : php vendor/bin/phan
3938
@@ -54,15 +53,12 @@ jobs:
5453
5554 steps :
5655 - name : " Configure git to avoid issues with line endings"
57- if : matrix .os == 'windows-latest '
56+ if : runner .os == 'Windows '
5857 run : git config --global core.autocrlf false
5958
6059 - name : " Checkout"
6160 uses : actions/checkout@v2
6261
63- - name : " Fetch cacert.pem from curl.haxx.se"
64- run : curl -o config/cacert.pem https://curl.haxx.se/ca/cacert.pem
65-
6662 - name : " Install PHP with extensions"
6763 uses : shivammathur/setup-php@v2
6864 with :
7167 extensions : curl, json, simplexml, zlib
7268# ini-values:
7369
74- - name : " Determine composer cache directory on Linux"
75- if : matrix.os == 'ubuntu-latest'
76- run : echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
77-
78- - name : " Determine composer cache directory on Windows"
79- if : matrix.os == 'windows-latest'
80- run : echo "COMPOSER_CACHE_DIR=%LOCALAPPDATA%\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
81-
82- - name : " Cache dependencies installed with composer"
83- uses : actions/cache@v2
84- with :
85- path : ${{ env.COMPOSER_CACHE_DIR }}
86- key : php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
87- restore-keys : php${{ matrix.php-version }}-composer-
88-
8970 - name : " Install dependencies with composer"
9071 run : composer update --no-ansi --no-interaction --no-progress --no-suggest
9172
0 commit comments