Rilis OpenDK v2603.0.0 #315
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: Laravel Test | |
| on: | |
| pull_request: | |
| branches: [master, rilis-dev, bug-fix, dev] | |
| jobs: | |
| laravel-tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| mysql: | |
| image: mysql:8.0 | |
| env: | |
| MYSQL_DATABASE: testing_db | |
| MYSQL_ROOT_PASSWORD: secret | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="mysqladmin ping --silent" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=3 | |
| steps: | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, tidy | |
| coverage: none | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - uses: actions/checkout@v4 | |
| - name: Copy .env | |
| run: php -r "file_exists('.env') || copy('.env.example', '.env');" | |
| - name: Install Dependencies | |
| run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
| - name: Install Node.js Dependencies | |
| run: npm install | |
| - name: Install Playwright Browsers | |
| run: npx playwright install | |
| - name: Generate key | |
| run: php artisan key:generate && php artisan jwt:secret | |
| - name: Directory Permissions | |
| run: chmod -R 777 storage bootstrap/cache | |
| - name: Set Installed State | |
| run: touch storage/installed | |
| - name: Extract database testing | |
| run: | | |
| tar -xzf database/database_test.sql.tar.gz -C database | |
| - name: Wait for MySQL | |
| run: sleep 15 | |
| - name: Import SQL file into MySQL | |
| run: | | |
| mysql -h 127.0.0.1 -P 3306 -u root -psecret testing_db < ./database/database_test.sql | |
| - name: Execute tests (Unit and Feature tests) via PHPUnit/Pest | |
| env: | |
| DB_CONNECTION: mysql | |
| DB_DATABASE: testing_db | |
| DB_USERNAME: root | |
| DB_PASSWORD: secret | |
| run: php artisan migrate && php artisan scribe:generate && php artisan test |