Add log provider for sms #823
Workflow file for this run
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 MySQL | |
| uses: mirromutth/mysql-action@v1.1 | |
| with: | |
| host port: 3306 | |
| container port: 3306 | |
| character set server: 'utf8mb4' | |
| collation server: 'utf8mb4_general_ci' | |
| mysql version: '5.7' | |
| mysql database: 'test_db' | |
| mysql root password: 'password' | |
| - 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: 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 |