snapshot of https://github.com/krayin/laravel-crm.git (2.2, 2026-09-18; blobs > 131072B omitted)
Some checks failed
Admin | Playwright Tests / Admin | Playwright Tests | Shard 1 Of 6 (push) Failing after 37s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 2 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 4 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 6 Of 6 (push) Failing after 6s
Linting Tests / PHP 8.3 test on ubuntu-latest (push) Failing after 5s
CI / PHP 8.3 test on ubuntu-latest (push) Failing after 6s
Skills Consistency / validate-skills (push) Successful in 10s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 3 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 5 Of 6 (push) Failing after 6s
Some checks failed
Admin | Playwright Tests / Admin | Playwright Tests | Shard 1 Of 6 (push) Failing after 37s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 2 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 4 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 6 Of 6 (push) Failing after 6s
Linting Tests / PHP 8.3 test on ubuntu-latest (push) Failing after 5s
CI / PHP 8.3 test on ubuntu-latest (push) Failing after 6s
Skills Consistency / validate-skills (push) Successful in 10s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 3 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 5 Of 6 (push) Failing after 6s
This commit is contained in:
122
.github/workflows/admin_playwright_tests.yml
vendored
Normal file
122
.github/workflows/admin_playwright_tests.yml
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
name: Admin | Playwright Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
FORCE_COLOR: 1
|
||||
|
||||
jobs:
|
||||
admin_playwright_test:
|
||||
runs-on: ${{ matrix.operating-systems }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
operating-systems: [ubuntu-latest]
|
||||
php-versions: ['8.3']
|
||||
node-version: ['22.13.1']
|
||||
shard-index: [1,2,3,4,5,6]
|
||||
shard-total: [6]
|
||||
|
||||
name: Admin | Playwright Tests | Shard ${{ matrix.shard-index }} Of ${{ matrix.shard-total }}
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
env:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_DATABASE: krayin
|
||||
ports:
|
||||
- 3306
|
||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
extensions: curl, fileinfo, gd, intl, mbstring, openssl, pdo, pdo_mysql, tokenizer, zip
|
||||
ini-values: error_reporting=E_ALL
|
||||
tools: composer:v2
|
||||
|
||||
- name: Set Up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install Node.js Dependencies
|
||||
run: npm install
|
||||
working-directory: packages/Webkul/Admin
|
||||
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright install --with-deps
|
||||
working-directory: packages/Webkul/Admin
|
||||
|
||||
- name: Setting Environment
|
||||
run: |
|
||||
cp .env.example .env
|
||||
sed -i "s|^\(DB_HOST=\s*\).*$|\1127.0.0.1|" .env
|
||||
sed -i "s|^\(DB_PORT=\s*\).*$|\1${{ job.services.mysql.ports['3306'] }}|" .env
|
||||
sed -i "s|^\(DB_DATABASE=\s*\).*$|\1krayin|" .env
|
||||
sed -i "s|^\(DB_USERNAME=\s*\).*$|\1root|" .env
|
||||
sed -i "s|^\(DB_PASSWORD=\s*\).*$|\1root|" .env
|
||||
sed -i "s|^\(APP_DEBUG=\s*\).*$|\1true|" .env
|
||||
sed -i "s|^\(APP_URL=\s*\).*$|\1http://127.0.0.1:8000|" .env
|
||||
cat .env
|
||||
|
||||
- name: Install Composer Dependencies
|
||||
run: composer install
|
||||
|
||||
- name: Running Krayin Installer
|
||||
run: php artisan krayin-crm:install --skip-env-check --skip-admin-creation
|
||||
|
||||
- name: Clear Laravel Caches
|
||||
run: php artisan optimize:clear
|
||||
|
||||
- name: Verify Activity Binding
|
||||
run: |
|
||||
php artisan tinker --execute="
|
||||
// 1) Laravel container binding (needed by repositories)
|
||||
if (! app()->bound(Webkul\\Activity\\Contracts\\Activity::class)) {
|
||||
throw new RuntimeException('Activity contract is NOT bound in Laravel container');
|
||||
}
|
||||
|
||||
// 2) Concord model-proxy registry (needed by ActivityProxy::modelClass())
|
||||
\$concord = app('concord');
|
||||
if (! \$concord->model(Webkul\\Activity\\Contracts\\Activity::class)) {
|
||||
throw new RuntimeException('Activity contract is NOT registered in Concord model registry');
|
||||
}
|
||||
|
||||
dump(app()->make(Webkul\\Activity\\Contracts\\Activity::class)::class);
|
||||
dump(\$concord->model(Webkul\\Activity\\Contracts\\Activity::class));
|
||||
"
|
||||
|
||||
# - name: Seed Product Table
|
||||
# run: php artisan db:seed --class="Webkul\\Installer\\Database\\Seeders\\ProductTableSeeder"
|
||||
|
||||
- name: Start Laravel server
|
||||
run: |
|
||||
php artisan serve --host=0.0.0.0 --port=8000 > server.log 2>&1 &
|
||||
echo "Waiting for server to start..."
|
||||
timeout 30 bash -c 'until curl -s http://127.0.0.1:8000 > /dev/null; do sleep 1; done'
|
||||
|
||||
- name: Run All Playwright Tests
|
||||
env:
|
||||
BASE_URL: 'http://127.0.0.1:8000'
|
||||
run: |
|
||||
npx playwright test --reporter=list --config=tests/e2e-pw/playwright.config.ts --shard=${{ matrix.shard-index }}/${{ matrix.shard-total }}
|
||||
working-directory: packages/Webkul/Admin
|
||||
|
||||
- name: Upload Test Results
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: test-results-${{ matrix.shard-index }}-${{ github.run_id }}-${{ github.run_number }}
|
||||
path: packages/Webkul/Admin/tests/e2e-pw/test-results
|
||||
retention-days: 1
|
||||
40
.github/workflows/auto_commits.yml
vendored
Normal file
40
.github/workflows/auto_commits.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Linting Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
linting_tests:
|
||||
runs-on: ${{ matrix.operating-systems }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
operating-systems: [ubuntu-latest]
|
||||
php-versions: ['8.3']
|
||||
|
||||
name: PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-systems }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
tools: composer:v2
|
||||
|
||||
- name: Install Pint
|
||||
run: composer global require laravel/pint
|
||||
env:
|
||||
COMPOSER_HOME: ${{ runner.temp }}/composer
|
||||
|
||||
- name: Run Pint
|
||||
run: ${{ runner.temp }}/composer/vendor/bin/pint
|
||||
|
||||
- name: Commit Linted Files
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "chore: applied pint changes"
|
||||
55
.github/workflows/ci.yml
vendored
Normal file
55
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest]
|
||||
php-versions: ["8.3"]
|
||||
|
||||
name: PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-system }}
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
env:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_DATABASE: krayin
|
||||
ports:
|
||||
- 3306
|
||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
extensions: curl, gd, intl, mbstring, openssl, pdo, pdo_mysql, tokenizer, zip
|
||||
ini-values: error_reporting=E_ALL
|
||||
tools: composer:v2
|
||||
|
||||
- name: Running Composer Install
|
||||
run: composer install --no-interaction --prefer-dist --no-progress
|
||||
|
||||
- name: Set Testing Environment
|
||||
run: |
|
||||
cp .env.example .env
|
||||
sed -i "s|^\(APP_ENV=\s*\).*$|\1testing|" .env
|
||||
sed -i "s|^\(DB_HOST=\s*\).*$|\1127.0.0.1|" .env
|
||||
sed -i "s|^\(DB_PORT=\s*\).*$|\1${{ job.services.mysql.ports['3306'] }}|" .env
|
||||
sed -i "s|^\(DB_DATABASE=\s*\).*$|\1krayin|" .env
|
||||
sed -i "s|^\(DB_USERNAME=\s*\).*$|\1root|" .env
|
||||
sed -i "s|^\(DB_PASSWORD=\s*\).*$|\1root|" .env
|
||||
|
||||
- name: Running Krayin Installer
|
||||
run: php artisan krayin-crm:install --skip-env-check --skip-admin-creation
|
||||
|
||||
- name: Running Pest Test
|
||||
run: vendor/bin/pest --parallel --colors=always
|
||||
41
.github/workflows/skills-consistency.yml
vendored
Normal file
41
.github/workflows/skills-consistency.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Skills Consistency
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/skills/**'
|
||||
- '.ai/**'
|
||||
- '.claude/**'
|
||||
- '.codex/**'
|
||||
- '.cursor/**'
|
||||
- '.kilocode/**'
|
||||
- 'bin/validate-skills.sh'
|
||||
- '.github/workflows/skills-consistency.yml'
|
||||
push:
|
||||
branches:
|
||||
- '2.*'
|
||||
- master
|
||||
- main
|
||||
paths:
|
||||
- '.github/skills/**'
|
||||
- '.ai/**'
|
||||
- '.claude/**'
|
||||
- '.codex/**'
|
||||
- '.cursor/**'
|
||||
- '.kilocode/**'
|
||||
- 'bin/validate-skills.sh'
|
||||
- '.github/workflows/skills-consistency.yml'
|
||||
|
||||
jobs:
|
||||
validate-skills:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Validate skill source-of-truth
|
||||
run: bash bin/validate-skills.sh
|
||||
Reference in New Issue
Block a user