Add the ability to set the editor's settings on load #438
This file contains 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: tests | |
on: [ push ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 45 | |
strategy: | |
matrix: | |
php: [ '8.3' ] | |
laravel: [ '11.31' ] | |
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Installing PHP | |
uses: shivammathur/setup-php@main | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, json, sqlite3 | |
tools: composer:v2 | |
- name: Lock Laravel Version | |
run: composer require "laravel/framework:${{ matrix.laravel }}.*" --no-update -v | |
- name: Composer Install | |
run: composer install --prefer-dist --no-progress --no-interaction | |
env: | |
DB_CONNECTION: sqlite | |
DB_HOST: 127.0.0.1 | |
DB_DATABASE: ":memory:" | |
DB_PORT: 3000 | |
DB_USERNAME: root | |
DB_PASSWORD: "" | |
- name: Start MySQL | |
run: sudo /etc/init.d/mysql start | |
- name: Create TWR database | |
run: mysql --host 127.0.0.1 --port 3306 -uroot -proot -e "CREATE DATABASE tw_testdb DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" | |
- name: Check TWR database exists | |
run: mysql --host 127.0.0.1 --port 3306 -uroot -proot -e "SHOW DATABASES LIKE 'tw_testdb';" | |
- name: Create TWR database user | |
run: mysql --host 127.0.0.1 --port 3306 -uroot -proot -e "CREATE USER 'tw_testuser'@'localhost' IDENTIFIED BY 'z0rglub';" | |
- name: Grant TWR database user privileges | |
run: mysql --host 127.0.0.1 --port 3306 -uroot -proot -e "GRANT ALL ON tw_testdb.* TO 'tw_testuser'@'localhost';" | |
- name: Run Tests | |
run: php vendor/bin/phpunit --testdox | |
env: | |
DROP_SCAN_EVENTS_AFTER_X_MINUTES: 0.5 | |
DROP_DISCOVERY_EVENTS_AFTER_X_MINUTES: 0.5 |