Release v1.13.7 #1265
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
| # .github/workflows/tests.yml | |
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - '!main' | |
| - '!release-**' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| lint-app: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}- | |
| - name: Install Dependencies | |
| run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
| - name: Run Pint | |
| run: vendor/bin/pint --test | |
| test-mariadb-11: | |
| needs: lint-app | |
| runs-on: ubuntu-24.04 | |
| services: | |
| mariadb: | |
| image: mariadb:11 | |
| env: | |
| MARIADB_ROOT_PASSWORD: password | |
| MARIADB_DATABASE: testing | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}- | |
| - name: Cache NPM dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ runner.os }}- | |
| - name: Install Dependencies | |
| run: | | |
| composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --classmap-authoritative | |
| npm ci --no-audit && npm run build | |
| - name: Copy Environment File | |
| run: cp .env.ci .env | |
| - name: Generate App Key | |
| run: php artisan key:generate --quiet | |
| - name: Run Tests | |
| run: php artisan test | |
| env: | |
| DB_CONNECTION: mysql | |
| DB_HOST: 127.0.0.1 | |
| DB_PORT: 3306 | |
| DB_DATABASE: testing | |
| DB_USERNAME: root | |
| DB_PASSWORD: password | |
| test-mariadb-12: | |
| needs: lint-app | |
| runs-on: ubuntu-24.04 | |
| services: | |
| mariadb: | |
| image: mariadb:12 | |
| env: | |
| MARIADB_ROOT_PASSWORD: password | |
| MARIADB_DATABASE: testing | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}- | |
| - name: Cache NPM dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ runner.os }}- | |
| - name: Install Dependencies | |
| run: | | |
| composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --classmap-authoritative | |
| npm ci --no-audit && npm run build | |
| - name: Copy Environment File | |
| run: cp .env.ci .env | |
| - name: Generate App Key | |
| run: php artisan key:generate --quiet | |
| - name: Run Tests | |
| run: php artisan test | |
| env: | |
| DB_CONNECTION: mysql | |
| DB_HOST: 127.0.0.1 | |
| DB_PORT: 3306 | |
| DB_DATABASE: testing | |
| DB_USERNAME: root | |
| DB_PASSWORD: password | |
| test-mysql-8: | |
| needs: lint-app | |
| runs-on: ubuntu-24.04 | |
| services: | |
| mysql: | |
| image: mysql:8 | |
| env: | |
| MYSQL_ROOT_PASSWORD: password | |
| MYSQL_DATABASE: testing | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}- | |
| - name: Cache NPM dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ runner.os }}- | |
| - name: Install Dependencies | |
| run: | | |
| composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --classmap-authoritative | |
| npm ci --no-audit && npm run build | |
| - name: Copy Environment File | |
| run: cp .env.ci .env | |
| - name: Generate App Key | |
| run: php artisan key:generate --quiet | |
| - name: Run Tests | |
| run: php artisan test | |
| env: | |
| DB_CONNECTION: mysql | |
| DB_HOST: 127.0.0.1 | |
| DB_PORT: 3306 | |
| DB_DATABASE: testing | |
| DB_USERNAME: root | |
| DB_PASSWORD: password | |
| test-postgres-15: | |
| needs: lint-app | |
| runs-on: ubuntu-24.04 | |
| services: | |
| postgres: | |
| image: postgres:15 | |
| env: | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: testing | |
| ports: | |
| - 5432:5432 | |
| options: --health-cmd="pg_isready -U postgres" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}- | |
| - name: Cache NPM dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ runner.os }}- | |
| - name: Install Dependencies | |
| run: | | |
| composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --classmap-authoritative | |
| npm ci --no-audit && npm run build | |
| - name: Copy Environment File | |
| run: cp .env.ci .env | |
| - name: Generate App Key | |
| run: php artisan key:generate --quiet | |
| - name: Run Tests | |
| run: php artisan test | |
| env: | |
| DB_CONNECTION: pgsql | |
| DB_HOST: 127.0.0.1 | |
| DB_PORT: 5432 | |
| DB_DATABASE: testing | |
| DB_USERNAME: postgres | |
| DB_PASSWORD: password | |
| test-postgres-16: | |
| needs: lint-app | |
| runs-on: ubuntu-24.04 | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: testing | |
| ports: | |
| - 5432:5432 | |
| options: --health-cmd="pg_isready -U postgres" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}- | |
| - name: Cache NPM dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ runner.os }}- | |
| - name: Install Dependencies | |
| run: | | |
| composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --classmap-authoritative | |
| npm ci --no-audit && npm run build | |
| - name: Copy Environment File | |
| run: cp .env.ci .env | |
| - name: Generate App Key | |
| run: php artisan key:generate --quiet | |
| - name: Run Tests | |
| run: php artisan test | |
| env: | |
| DB_CONNECTION: pgsql | |
| DB_HOST: 127.0.0.1 | |
| DB_PORT: 5432 | |
| DB_DATABASE: testing | |
| DB_USERNAME: postgres | |
| DB_PASSWORD: password | |
| test-postgres-17: | |
| needs: lint-app | |
| runs-on: ubuntu-24.04 | |
| services: | |
| postgres: | |
| image: postgres:17 | |
| env: | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: testing | |
| ports: | |
| - 5432:5432 | |
| options: --health-cmd="pg_isready -U postgres" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}- | |
| - name: Cache NPM dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ runner.os }}- | |
| - name: Install Dependencies | |
| run: | | |
| composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --classmap-authoritative | |
| npm ci --no-audit && npm run build | |
| - name: Copy Environment File | |
| run: cp .env.ci .env | |
| - name: Generate App Key | |
| run: php artisan key:generate --quiet | |
| - name: Run Tests | |
| run: php artisan test | |
| env: | |
| DB_CONNECTION: pgsql | |
| DB_HOST: 127.0.0.1 | |
| DB_PORT: 5432 | |
| DB_DATABASE: testing | |
| DB_USERNAME: postgres | |
| DB_PASSWORD: password | |
| test-postgres-18: | |
| needs: lint-app | |
| runs-on: ubuntu-24.04 | |
| services: | |
| postgres: | |
| image: postgres:18 | |
| env: | |
| POSTGRES_PASSWORD: password | |
| POSTGRES_DB: testing | |
| ports: | |
| - 5432:5432 | |
| options: --health-cmd="pg_isready -U postgres" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}- | |
| - name: Cache NPM dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ runner.os }}- | |
| - name: Install Dependencies | |
| run: | | |
| composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --classmap-authoritative | |
| npm ci --no-audit && npm run build | |
| - name: Copy Environment File | |
| run: cp .env.ci .env | |
| - name: Generate App Key | |
| run: php artisan key:generate --quiet | |
| - name: Run Tests | |
| run: php artisan test | |
| env: | |
| DB_CONNECTION: pgsql | |
| DB_HOST: 127.0.0.1 | |
| DB_PORT: 5432 | |
| DB_DATABASE: testing | |
| DB_USERNAME: postgres | |
| DB_PASSWORD: password | |
| test-sqlite: | |
| needs: lint-app | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}- | |
| - name: Cache NPM dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ runner.os }}- | |
| - name: Create SQLite Database | |
| run: | | |
| touch database/database.sqlite | |
| - name: Install Dependencies | |
| run: | | |
| composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --classmap-authoritative | |
| npm ci --no-audit && npm run build | |
| - name: Copy Environment File | |
| run: cp .env.ci .env | |
| - name: Generate App Key | |
| run: php artisan key:generate --quiet | |
| - name: Run Tests | |
| run: php artisan test | |
| env: | |
| DB_CONNECTION: sqlite |