Skip to content

Commit 5b9b270

Browse files
committed
🚿
1 parent a4fccad commit 5b9b270

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/ci.yml

+6-21
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
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
@@ -29,11 +33,6 @@ jobs:
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

@@ -51,10 +50,11 @@ jobs:
5150
php-version:
5251
- "7.4"
5352
- "8.0"
53+
# - "8.1"
5454

5555
steps:
5656
- name: "Configure git to avoid issues with line endings"
57-
if: matrix.os == 'windows-latest'
57+
if: ${{ runner.os == 'Windows' }}
5858
run: git config --global core.autocrlf false
5959

6060
- name: "Checkout"
@@ -71,21 +71,6 @@ jobs:
7171
extensions: curl, json, simplexml, zlib
7272
# ini-values:
7373

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-
8974
- name: "Install dependencies with composer"
9075
run: composer update --no-ansi --no-interaction --no-progress --no-suggest
9176

0 commit comments

Comments
 (0)