Skip to content

Removing Darkmode and CI changes. #510

Removing Darkmode and CI changes.

Removing Darkmode and CI changes. #510

Workflow file for this run

name: tests
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: composer:v2
coverage: xdebug
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Set up MySQL
run: |
sudo systemctl start mysql
mysql --user="root" --password="root" -e "CREATE DATABASE \`DB_DATABASE=metisio_testing\` character set UTF8mb4 collate utf8mb4_bin;"
- name: Install Node Dependencies
run: npm install
- name: Build Assets
run: npm run build
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Copy Environment File
run: cp .env.example .env
- name: Generate Application Key
run: php artisan key:generate
# Install the Chrome binaries required for Dusk to run tests
- name: Install Chrome binaries
run: php artisan dusk:chrome-driver --detect
# Start the Chrome driver so we're able to run browser tests with Chrome
- name: Start Chrome Driver
run: ./vendor/laravel/dusk/bin/chromedriver-linux &
- name: Run Migrations
run: php artisan migrate
- name: Start Server
run: php artisan serve --no-reload &
- name: Tests
run: php artisan test
- name: Browser Tests
run: php artisan dusk