Add Sentry #1950
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: Laravel CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - upgrade/tagging-2025 | |
| pull_request: | |
| branches: | |
| - master | |
| - upgrade/tagging-2025 | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| mysql: | |
| image: mysql:8.0 | |
| env: | |
| MYSQL_ROOT_PASSWORD: secret | |
| MYSQL_DATABASE: olm_test | |
| MYSQL_NATIVE_PASSWORD: "ON" | |
| ports: [3306:3306] | |
| options: >- | |
| --health-cmd="mysqladmin ping -h 127.0.0.1 -psecret" | |
| --health-interval=10s --health-timeout=5s --health-retries=3 | |
| redis: | |
| image: redis:7 | |
| ports: [6379:6379] | |
| env: | |
| APP_ENV: testing | |
| # database | |
| DB_CONNECTION: mysql | |
| DB_HOST: 127.0.0.1 | |
| DB_PORT: 3306 | |
| DB_DATABASE: olm_test | |
| DB_USERNAME: root | |
| DB_PASSWORD: secret | |
| # misc drivers | |
| BROADCAST_DRIVER: log | |
| CACHE_DRIVER: array | |
| QUEUE_CONNECTION: sync | |
| SESSION_DRIVER: array | |
| # fake S3/MinIO (used only by tests) | |
| AWS_ACCESS_KEY_ID: minioadmin | |
| AWS_SECRET_ACCESS_KEY: minioadmin | |
| AWS_DEFAULT_REGION: us-east-1 | |
| AWS_EC2_METADATA_DISABLED: true | |
| AWS_BUCKET: olm-public | |
| AWS_ENDPOINT: http://127.0.0.1:9000 | |
| x500_AWS_ACCESS_KEY_ID: minioadmin | |
| x500_AWS_SECRET_ACCESS_KEY: minioadmin | |
| x500_AWS_REGION: us-east-1 | |
| x500_AWS_BUCKET: olm-public-bbox | |
| x500_AWS_ENDPOINT: http://127.0.0.1:9000 | |
| # redis | |
| REDIS_PORT: 6379 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Copy test fixture image | |
| run: | | |
| mkdir -p storage/framework/testing | |
| cp tests/Unit/img_with_exif.JPG storage/framework/testing/img_with_exif.JPG | |
| - name: Remove old config cache | |
| run: rm -f bootstrap/cache/config.php | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.3 | |
| extensions: mbstring, dom, fileinfo, mysql, pdo_mysql | |
| - name: Prepare .env | |
| run: cp .env.testing .env | |
| - name: Wait for MySQL | |
| run: | | |
| for i in {1..30}; do | |
| nc -z 127.0.0.1 3306 && exit 0 | |
| echo "Waiting for MySQL…" | |
| sleep 2 | |
| done | |
| exit 1 | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction --prefer-dist --optimize-autoloader --no-scripts | |
| - name: Discover packages | |
| run: php artisan package:discover --ansi | |
| - name: Run migrations | |
| run: php artisan migrate --force --no-interaction -vvv | |
| - name: PHPUnit | |
| run: vendor/bin/phpunit --colors=always |