feat: implement NewsTypeBadge component for consistent news type disp… #1656
This file contains hidden or 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
| # GitHub Action for Laravel with MySQL and Redis | |
| name: tests | |
| on: [ push, pull_request ] | |
| jobs: | |
| phpunit: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: kirschbaumdevelopment/laravel-test-runner:8.3 | |
| services: | |
| mysql: | |
| image: mysql:8.0 | |
| env: | |
| MYSQL_ROOT_PASSWORD: password | |
| MYSQL_DATABASE: minetrax | |
| MYSQL_USER: minetrax | |
| MYSQL_PASSWORD: password | |
| MYSQL_ALLOW_EMPTY_PASSWORD: 1 | |
| ports: | |
| - 33306:3306 | |
| options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| redis: | |
| image: redis | |
| env: | |
| MYSQL_ROOT_PASSWORD: password | |
| MYSQL_DATABASE: minetrax | |
| MYSQL_USER: minetrax | |
| MYSQL_PASSWORD: password | |
| MYSQL_ALLOW_EMPTY_PASSWORD: 1 | |
| ports: | |
| - 6379:6379 | |
| options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install composer dependencies | |
| run: | | |
| composer install --no-scripts | |
| - name: Prepare Laravel Application | |
| run: | | |
| cp .env.example .env | |
| php artisan key:generate | |
| php artisan migrate -v | |
| env: | |
| DB_HOST: mysql | |
| REDIS_HOST: redis | |
| APP_DEBUG: true | |
| - name: Run Test Suite | |
| run: php artisan test | |
| env: | |
| DB_HOST: mysql | |
| REDIS_HOST: redis | |
| APP_DEBUG: true |