-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (73 loc) · 3.03 KB
/
test-new-changes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Test LaraPanel Pkg for new changes
on:
push:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get codes
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
tools: composer, phpunit
coverage: none
- name: Install LaraPanel Framework
run: composer create-project weprodev/larapanel-framework
- name: Link Local Package
working-directory: larapanel-framework
run: |
composer config repositories.local '{"type": "path", "url": "../LaraPanel", "options": {"symlink": true}}'
composer clear-cache
composer require weprodev/larapanel:@dev --no-cache --no-update
- name: Debug Composer Dependencies
working-directory: larapanel-framework
run: composer show weprodev/larapanel
- name: Set SQLite File Permissions
working-directory: larapanel-framework
run: |
touch database/database.sqlite
chmod 777 database/database.sqlite
- name: Directory Permissions
working-directory: larapanel-framework
run: chmod -R 777 storage bootstrap/cache
- name: Generate Application Key
working-directory: larapanel-framework
run: php artisan key:generate
- name: Migrate and Seed Database
working-directory: larapanel-framework
env:
APP_ENV: testing
CACHE_DRIVER: array
SESSION_DRIVER: array
QUEUE_CONNECTION: sync
DB_CONNECTION: sqlite
DB_DATABASE: ./database/database.sqlite
run: |
echo "Publishing Shared Service file"
php artisan vendor:publish --tag=larapanel-install --force
php artisan vendor:publish --tag=larapanel-config --force
echo "Publishing Panel Provider files"
php artisan vendor:publish --tag=larapanel-panel-controller --force
php artisan vendor:publish --tag=larapanel-panel-components --force
php artisan vendor:publish --tag=larapanel-view-PurpleAdmin --force
echo "Publishing User module files"
php artisan vendor:publish --tag=larapanel-route-user --force
php artisan vendor:publish --tag=larapanel-view-user --force
php artisan vendor:publish --tag=larapanel-lang --force
php artisan vendor:publish --tag=larapanel-admin-controller --force
php artisan vendor:publish --tag=larapanel-admin-request --force
php artisan vendor:publish --tag=larapanel-auth-controller --force
php artisan vendor:publish --tag=larapanel-models --force
php artisan vendor:publish --tag=larapanel-seeders --force
- name: Executing migrations and seeder files
working-directory: larapanel-framework
run: |
php artisan migrate:fresh --force
php artisan db:seed --force
- name: Execute E2E testing
working-directory: larapanel-framework
run: php artisan test