From: gggeek Date: Tue, 14 Feb 2023 13:18:21 +0000 (+0000) Subject: gha: test all dependencies when committing to this package X-Git-Tag: 4.10.1~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b0bfab6dbcfc2f421f3b273ba1cab319c343aea5;p=plcapi.git gha: test all dependencies when committing to this package --- diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3788f67f..da0e86d4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -143,3 +143,25 @@ jobs: if [ -d /var/log/apache2 ]; then sudo cat /var/log/apache2/error.log; fi if [ -d /var/log/apache2 ]; then sudo cat /var/log/apache2/other_vhosts_access.log; fi sudo cat /var/log/php*.log + + test-dependencies: + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + include: + - dependency: phpxmlrpc/extras + #- dependency: phpxmlrpc/jsonrpc + - dependency: phpxmlrpc/polyfill-xmlrpc + steps: + - name: download dependency, build its test vm and run its tests against the current commit + run: | + composer create-project --prefer-source --no-install --remove-vcs --stability=alpha "${{ matrix.dependency }}" . + sed -i -E -e 's|"phpxmlrpc/phpxmlrpc" *: *"[^s]+|"phpxmlrpc/phpxmlrpc": "dev-master#${{ github.ref_name }}"|g' composer.json + chmod 755 ./tests/ci/vm.sh + ./tests/ci/vm.sh build + ./tests/ci/vm.sh start + # @todo check instead for bootstrap being finished + sleep 30 + ./tests/ci/vm.sh exec + ./tests/ci/vm.sh runtests