Skip to content

chore: add CONTRIBUTING.md (#18) #66

chore: add CONTRIBUTING.md (#18)

chore: add CONTRIBUTING.md (#18) #66

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
services:
mysql:
image: mysql:8.0.27
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: testing
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
env:
runner: self-hosted
- name: Install dependencies
run: |
composer --version
composer clear-cache
composer install --no-interaction --prefer-dist
composer dump-autoload
- name: Prepare Laravel
run: |
cp .env.example .env
php artisan key:generate
- name: Run tests
run: |
php artisan test --ci --order-by random