Skip to content

Adds all the things 🎉 #32

Adds all the things 🎉

Adds all the things 🎉 #32

Workflow file for this run

name: Checks
on: [ pull_request ]
jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # important!
- name: setup php
run: |
sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:ondrej/php -y
sudo apt install -y php8.2-{common,cli,gd,curl,mysql,mbstring,dom,xml,simplexml}
curl -s https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
git submodule init
git submodule update --remote --merge
- name: Install dependencies
run: |
sudo systemctl start mysql.service
mysql -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS testing;'
sudo apt update && sudo apt install -y php-mysql
composer install --prefer-dist --no-progress --no-suggest
- name: Run tests
run: |
cp .env.ci .env
touch database/database.sqlite
php artisan key:generate
php vendor/bin/phpunit