Make composer install later in github ci
@@ -50,10 +50,12 @@ jobs:
#env:
#phpts: ${{ matrix.ts }}
- - name: Setup Deps
+ - name: Setup extension dependencies
run: |
- composer update -o --ignore-platform-reqs
- ${{ runner.os == 'Linux' && 'sudo apt-get install -yqq libssl-dev libcurl4-openssl-dev' || '' }}
+ if ${{ runner.os }} = 'Linux'
+ then
+ sudo apt-get install -yqq libssl-dev libcurl4-openssl-dev
+ fi
- name: Build Swow extension
run: |
@@ -79,6 +81,9 @@ jobs:
composer test-extension -- \
-j`${{ runner.os == 'Linux' && 'nproc' || 'sysctl -n hw.logicalcpu' }}`
+ - name: Setup composer dependencies
+ run: composer update -o --ignore-platform-reqs
+
- name: Run library tests
run: composer test-library
@@ -120,9 +125,6 @@ jobs:
env:
phpts: ${{ matrix.ts }}
- - name: Setup Deps
- run: composer update -o --ignore-platform-reqs
-
- name: Build Swow extension
uses: ./.github/workflows/winext
with:
@@ -139,6 +141,9 @@ jobs:
run: |
composer test-extension
+ - name: Setup composer dependencies
+ run: composer update -o --ignore-platform-reqs
+
- name: Run library tests
shell: cmd
run: |
