14
14
15
15
runs-on : ubuntu-latest
16
16
17
+ env :
18
+ PHAN_ALLOW_XDEBUG : 0
19
+ PHAN_DISABLE_XDEBUG_WARN : 1
20
+
17
21
steps :
18
22
- name : " Checkout"
19
23
uses : actions/checkout@v2
29
33
- name : " Update dependencies with composer"
30
34
run : composer update --no-interaction --no-ansi --no-progress --no-suggest
31
35
32
- - name : " phan env"
33
- run : |
34
- echo "PHAN_ALLOW_XDEBUG=0" >> $GITHUB_ENV
35
- echo "PHAN_DISABLE_XDEBUG_WARN=1" >> $GITHUB_ENV
36
-
37
36
- name : " Run phan"
38
37
run : php vendor/bin/phan
39
38
@@ -51,10 +50,11 @@ jobs:
51
50
php-version :
52
51
- " 7.4"
53
52
- " 8.0"
53
+ # - "8.1"
54
54
55
55
steps :
56
56
- name : " Configure git to avoid issues with line endings"
57
- if : matrix .os == 'windows-latest'
57
+ if : ${{ runner .os == 'Windows' }}
58
58
run : git config --global core.autocrlf false
59
59
60
60
- name : " Checkout"
71
71
extensions : curl, json, simplexml, zlib
72
72
# ini-values:
73
73
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
-
89
74
- name : " Install dependencies with composer"
90
75
run : composer update --no-ansi --no-interaction --no-progress --no-suggest
91
76
0 commit comments