diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8ff1cad46..ad5304ace 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,7 +55,7 @@ jobs: - name: Install cached PHP's dependencies if: steps.php-build-cache.outputs.cache-hit == 'true' - run: chmod +x ./bin/php7/install-dependencies.sh && ./bin/php7/install-dependencies.sh + run: ./tests/gh-actions/install-dependencies.sh - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH @@ -105,7 +105,7 @@ jobs: - name: Install cached PHP's dependencies if: steps.php-build-cache.outputs.cache-hit == 'true' - run: chmod +x ./bin/php7/install-dependencies.sh && ./bin/php7/install-dependencies.sh + run: ./tests/gh-actions/install-dependencies.sh - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH @@ -157,7 +157,7 @@ jobs: - name: Install cached PHP's dependencies if: steps.php-build-cache.outputs.cache-hit == 'true' - run: chmod +x ./bin/php7/install-dependencies.sh && ./bin/php7/install-dependencies.sh + run: ./tests/gh-actions/install-dependencies.sh - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH @@ -209,7 +209,7 @@ jobs: - name: Install cached PHP's dependencies if: steps.php-build-cache.outputs.cache-hit == 'true' - run: chmod +x ./bin/php7/install-dependencies.sh && ./bin/php7/install-dependencies.sh + run: ./tests/gh-actions/install-dependencies.sh - name: Prefix PHP to PATH run: echo "$(pwd)/bin/php7/bin" >> $GITHUB_PATH diff --git a/tests/gh-actions/install-dependencies.sh b/tests/gh-actions/install-dependencies.sh new file mode 100755 index 000000000..368e27e3a --- /dev/null +++ b/tests/gh-actions/install-dependencies.sh @@ -0,0 +1,3 @@ +#!/bin/bash +sudo apt update && sudo apt install -y \ + libzip5