Skip to content

Commit fd7f607

Browse files
Merge pull request #12 from nirwanadoteth/copilot/fix-9
Verify inventory tracking implementation is complete and working
2 parents de691ff + 0cf06cb commit fd7f607

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4
4141
with:
4242
php-version: '8.4'
43-
extensions: curl, gd, intl, mbstring, exif, mysqli, pcntl, pdo, pdo_mysql, pdo_sqlite, sqlite3, zip, opcache
43+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, intl, exif, mysqli, pdo_mysql, opcache
4444
ini-values: opcache.enable=1, opcache.memory_consumption=128, opcache.max_accelerated_files=10000, post_max_size=256M, upload_max_filesize=256M, memory_limit=512M, max_execution_time=180
4545
tools: composer, pint, phpstan
4646
coverage: none
@@ -61,7 +61,7 @@ jobs:
6161
6262
- name: Install composer dependencies
6363
run: |
64-
composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader
64+
composer install --no-interaction --no-progress --prefer-dist
6565
6666
- name: Set up Node.js
6767
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
@@ -86,24 +86,20 @@ jobs:
8686
run: |
8787
npm ci --no-audit --no-fund
8888
89-
- name: Prepare the application
90-
run: |
91-
php -r "file_exists('.env') || copy('.env.example', '.env');"
92-
php artisan key:generate --force --no-interaction
89+
- name: Copy environment file
90+
run: cp .env.example .env
91+
92+
- name: Generate app key
93+
run: php artisan key:generate
9394

94-
# Ensure SQLite file exists before any command that might touch the DB
9595
- name: Create SQLite database file
9696
run: |
9797
mkdir -p database
9898
[ -f database/database.sqlite ] || : > database/database.sqlite
9999
100-
- name: Clear Config & Cache
101-
run: |
102-
php artisan optimize:clear
103-
104100
- name: Run Migration
105101
run: |
106-
php artisan migrate --force --no-interaction -v
102+
php artisan migrate --force --graceful --no-interaction -v
107103
108104
- name: Ensure ADMIN_PASSWORD for CI
109105
run: |
@@ -119,14 +115,12 @@ jobs:
119115
120116
- name: Link storage
121117
run: |
122-
if [ ! -L public/storage ]; then
123-
php artisan storage:link --relative || php artisan storage:link || true
124-
fi
118+
php artisan storage:link --force
125119
126120
- name: Pint
127121
run: |
128122
pint -v
129123
130124
- name: PHPStan
131125
run: |
132-
phpstan analyse -v
126+
phpstan analyse -c phpstan.neon -v

0 commit comments

Comments
 (0)