Update CHANGELOG #912
This file contains hidden or 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
| name: bowphp | |
| on: [ push, pull_request ] | |
| env: | |
| AWS_KEY: ${{ secrets.AWS_KEY }} | |
| AWS_SECRET: ${{ secrets.AWS_SECRET }} | |
| AWS_ENDPOINT: ${{ secrets.AWS_ENDPOINT }} | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| AWS_REGION: ${{ secrets.AWS_REGION }} | |
| AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | |
| jobs: | |
| lunix-tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| php: [8.1, 8.2, 8.3, 8.4] | |
| os: [ubuntu-latest] | |
| stability: [prefer-lowest, prefer-stable] | |
| name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysql, sqlite, pgsql, pdo_mysql, pdo_pgsql, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, redis | |
| coverage: none | |
| - name: Set Docker containers | |
| run: docker compose up -d | |
| - name: Wait for MySQL to be ready | |
| run: | | |
| echo "Waiting for MySQL to be ready..." | |
| for i in {1..30}; do | |
| if docker exec bowphp_mysql mysqladmin ping -h localhost -u root -ppassword --silent 2>/dev/null; then | |
| echo "MySQL is ready!" | |
| break | |
| fi | |
| echo "Waiting for MySQL... ($i/30)" | |
| sleep 2 | |
| done | |
| - name: Wait for PostgreSQL to be ready | |
| run: | | |
| echo "Waiting for PostgreSQL to be ready..." | |
| for i in {1..30}; do | |
| if docker exec bowphp_postgres pg_isready -U postgres --silent 2>/dev/null; then | |
| echo "PostgreSQL is ready!" | |
| break | |
| fi | |
| echo "Waiting for PostgreSQL... ($i/30)" | |
| sleep 2 | |
| done | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
| - name: Copy the php ini config | |
| run: sudo cp php.dist.ini php.ini | |
| - name: Install dependencies | |
| run: sudo composer update --prefer-dist --no-interaction | |
| - name: Create test cache directory | |
| run: if [ ! -d /tmp/bowphp_testing ]; then mkdir -p /tmp/bowphp_testing; fi; | |
| - name: Run test suite | |
| run: ./vendor/bin/phpunit tests --configuration phpunit.dist.xml |