-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The disk hosting /home/runner/.composer has less than 100MiB of free space, this may be the cause of the following exception Error: Failed to execute git clone --mirror -- '***github.com/rectorphp/rector.git' '/home/runner/.cache/composer/vcs/https---github.com-rectorphp-rector.git/' Cloning into bare repository '/home/runner/.cache/composer/vcs/https---github.com-rectorphp-rector.git'... fatal: write error: No space left on device fatal: fetch-pack: invalid index-pack output In Git.php line 472: Failed to execute git clone --mirror -- '***gi thub.com/rectorphp/rector.git' '/home/runner/.cache/composer/vcs/https---gi thub.com-rectorphp-rector.git/' Cloning into bare repository '/home/runner/.cache/composer/vcs/https---gith ub.com-rectorphp-rector.git'... fatal: write error: No space left on device fatal: fetch-pack: invalid index-pack output update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...] Error: Process completed with exit code 1.
- Loading branch information
Showing
2 changed files
with
288 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# This workflow runs tests on MySQLi with the lowest PHP version and Composer dependencies. | ||
name: PHPUnit Lowest | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
paths: | ||
- '**.php' | ||
- 'composer.*' | ||
- 'phpunit*' | ||
- '.github/workflows/phpunit.yml' | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- '**.php' | ||
- 'composer.*' | ||
- 'phpunit*' | ||
- '.github/workflows/phpunit.yml' | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
main: | ||
name: PHP ${{ matrix.php-versions }} - ${{ matrix.db-platforms }} - ${{ matrix.dependencies }} | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
strategy: | ||
matrix: | ||
php-versions: ['7.4'] | ||
db-platforms: ['MySQLi'] | ||
mysql-versions: ['5.7'] | ||
dependencies: ['lowest'] | ||
|
||
services: | ||
mysql: | ||
image: mysql:${{ matrix.mysql-versions }} | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
MYSQL_DATABASE: test | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
steps: | ||
- name: Check disk space | ||
run: df -h | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check disk space | ||
run: df -h | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: composer, phive, phpunit | ||
extensions: intl, json, mbstring, gd, xdebug, xml, sqlite3 | ||
coverage: xdebug | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check disk space | ||
run: df -h | ||
|
||
- name: Get composer cache directory | ||
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.COMPOSER_CACHE_FILES_DIR }} | ||
key: ${{ runner.os }}-composer-lowest-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer-lowest- | ||
|
||
- name: Check disk space | ||
run: df -h | ||
|
||
- name: Install dependencies | ||
run: | | ||
if [ -f composer.lock ]; then | ||
composer install ${{ env.COMPOSER_UPDATE_FLAGS }} --no-progress --no-interaction --prefer-dist --optimize-autoloader | ||
else | ||
composer update ${{ env.COMPOSER_UPDATE_FLAGS }} --no-progress --no-interaction --prefer-dist --optimize-autoloader | ||
fi | ||
env: | ||
COMPOSER_UPDATE_FLAGS: ${{ matrix.dependencies == 'lowest' && '--prefer-lowest' || '' }} | ||
|
||
- name: Check disk space | ||
run: df -h | ||
|
||
- name: Test with PHPUnit | ||
run: vendor/bin/phpunit --verbose --coverage-text --testsuite main | ||
env: | ||
DB: ${{ matrix.db-platforms }} | ||
TERM: xterm-256color | ||
TACHYCARDIA_MONITOR_GA: enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters