Skip to content

Extract attendance detail modal component #41

Extract attendance detail modal component

Extract attendance detail modal component #41

Workflow file for this run

name: Laravel Tests
on:
push:
branches: [ "master", "main" ]
pull_request:
env:
DB_CONNECTION: mysql
DB_DATABASE: db_absensi_karyawan_test
DB_PASSWORD: null
jobs:
laravel-tests:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
# The MySQL docker container requires these environment variables to be set
# so we can create and migrate the test database.
# See: https://hub.docker.com/_/mysql
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: ${{ env.DB_DATABASE }}
MYSQL_ROOT_PASSWORD: ${{ env.DB_PASSWORD }}
ports:
# Opens port 3306 on service container and host
# https://docs.github.com/en/actions/using-containerized-services/about-service-containers
- 3306:3306
# Before continuing, verify the mysql container is reachable from the ubuntu host
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: latest
extensions: gd, intl, zip
- uses: actions/checkout@v4
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate --force
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Install NPM dependencies and Build Assets
run: npm ci && npm run build
- name: Delete node_modules
run: rm -rf node_modules
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
run: php artisan test
- name: Execute migrations
run: php artisan migrate:fresh --force
- name: Execute seeders
run: php artisan db:seed FakeDataSeeder --force