Correct linting error [MA-145] #208
Workflow file for this run
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: Testing | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_DATABASE: mobile-admin-test | |
MYSQL_USER: mobile-admin | |
MYSQL_PASSWORD: secret | |
MYSQL_ROOT_PASSWORD: secret | |
ports: | |
- 3306:3306 | |
# See https://firefart.at/post/using-mysql-service-with-github-actions/ | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.13.0 | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install PHP dependencies | |
run: composer install --no-interaction --no-progress --no-scripts | |
- name: Generate key | |
run: php artisan key:generate --env=testing | |
- name: Migrate database | |
run: php artisan migrate --env=testing | |
- name: Build Twill assets | |
run: php artisan twill:build --env=testing | |
- name: Run PHPUnit | |
run: php artisan test --env=testing |