Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
44cd0fc
update seeders with better quality data
xlcrr Jan 5, 2025
544d9c1
fix height on leaderboards
xlcrr Jan 6, 2025
61a6cef
fix nav, page height
xlcrr Jan 7, 2025
ab9170f
start tags
xlcrr Jan 12, 2025
52fc742
update tagging
xlcrr Jan 13, 2025
3dc4365
update tagging
xlcrr Jan 18, 2025
dacb4e6
update relationships
xlcrr Jan 19, 2025
bcadc6c
update tags
xlcrr Jan 24, 2025
57399e4
Update littermodel
xlcrr Jan 26, 2025
575a96f
fix load nested tags
xlcrr Feb 2, 2025
86813b3
Add more tests, filters
xlcrr Feb 3, 2025
da17e04
update frontend
xlcrr Feb 3, 2025
d6929db
remove tag_types
xlcrr Feb 8, 2025
5742169
tagging progress
xlcrr Feb 9, 2025
2b9d752
update tagging
xlcrr Feb 10, 2025
0caa83a
update tagging
xlcrr Feb 10, 2025
c5d3e15
update brands list
xlcrr Feb 12, 2025
a26e33d
update brandslist, seeder
xlcrr Feb 13, 2025
e4f0232
update tags
xlcrr Feb 21, 2025
d4795e9
updte tagging
xlcrr Feb 22, 2025
0fc00fb
tagging progress
xlcrr Feb 23, 2025
f42ce8f
tagging progress
xlcrr Feb 23, 2025
a49759a
try to upgrade laravel 12, not ready yet, removed filament
xlcrr Feb 24, 2025
c901396
update tagging in a big way
xlcrr Feb 24, 2025
5380299
update tagging
xlcrr Feb 25, 2025
c1b3718
fix tests
xlcrr Feb 28, 2025
972f9a1
update tagging
xlcrr Feb 28, 2025
bb30916
update tagging
xlcrr Feb 28, 2025
bcf82ef
update tagging
xlcrr Mar 1, 2025
82ce48c
update tagging
xlcrr Mar 2, 2025
792e8fd
update tags
xlcrr Mar 3, 2025
2f698c3
update tagging
xlcrr Mar 3, 2025
f1355b9
update tagging
xlcrr Mar 4, 2025
b88e7d5
update tagging
xlcrr Mar 6, 2025
fbf4cae
update tagging
xlcrr Mar 8, 2025
1e85d9b
update tagging
xlcrr Mar 9, 2025
d4565ba
update tagging
xlcrr Mar 10, 2025
8c33bb0
update tagging - nested objects
xlcrr Mar 10, 2025
d4684ca
update tagging
xlcrr Mar 11, 2025
306f9cc
begin badges
xlcrr Mar 14, 2025
049f088
create badges
xlcrr Mar 19, 2025
35ab14d
websockets
xlcrr Mar 20, 2025
2f214a3
update tagging, fix websockets on https locally
xlcrr Mar 21, 2025
ceffcd1
update worldcup metadata header
xlcrr Mar 21, 2025
a440135
update world cup, sort locations, components
xlcrr Mar 23, 2025
2b01f8e
prepare for migration
xlcrr Mar 23, 2025
e2912f2
update migration script
xlcrr Mar 23, 2025
3ed9f15
start taggable
xlcrr Mar 24, 2025
d0abf1e
updates
xlcrr Mar 25, 2025
87db924
update pre migration script
xlcrr Mar 27, 2025
7809fb3
tagging updates
xlcrr Mar 27, 2025
aed8617
update tags
xlcrr Mar 28, 2025
0babcdc
update tagging
xlcrr Mar 29, 2025
197332c
update pre-migration script
xlcrr Mar 30, 2025
8286fad
update tagging
xlcrr Mar 30, 2025
02c200c
update migration, transform old to new tags
xlcrr Apr 1, 2025
93eb491
update tagging migration
xlcrr Apr 2, 2025
458bd0b
update tagging - add state, size
xlcrr Apr 3, 2025
a1ece89
update tagging migration
xlcrr Apr 4, 2025
2f0913c
update tags service to migrate old to new tags
xlcrr Apr 5, 2025
e2bef90
update tagging relationships
xlcrr Apr 6, 2025
822c705
classify customTag
xlcrr Apr 6, 2025
521e1d6
update tagging summary
xlcrr Apr 9, 2025
7301979
update tagging tests
xlcrr Apr 10, 2025
7126416
update tagging migration tests
xlcrr Apr 11, 2025
4b93f0d
update tests
xlcrr Apr 12, 2025
9e42e90
pass all tests
xlcrr Apr 13, 2025
d038e1b
add db host to yml
xlcrr Apr 13, 2025
ee23cf9
update
xlcrr Apr 13, 2025
b2bb647
update tagging
xlcrr Apr 13, 2025
57954fc
update to UpdateTagsServiceTest
xlcrr Apr 18, 2025
ed8ede2
update to UpdateTagsServiceTest
xlcrr Apr 18, 2025
b69405c
pass all tests
xlcrr Apr 18, 2025
bba72ca
update assertion
xlcrr Apr 18, 2025
356bb86
update tests remove annoying logs
xlcrr Apr 19, 2025
46534cb
update laravel.yml
xlcrr Apr 19, 2025
058ce6f
update laravel.yml
xlcrr Apr 19, 2025
38317c2
update laravel.yml
xlcrr Apr 19, 2025
6bda2be
update laravel.yml
xlcrr Apr 19, 2025
de16407
Tests
xlcrr Apr 20, 2025
a917ab0
fix tests
xlcrr Apr 20, 2025
cffb831
update yml
xlcrr Apr 20, 2025
1a40d79
update yml
xlcrr Apr 20, 2025
4c76617
update yml with o3
xlcrr Apr 20, 2025
f9f3d2a
update yml
xlcrr Apr 20, 2025
dd8a1b1
update yml
xlcrr Apr 20, 2025
7686d5f
update yml again
xlcrr Apr 20, 2025
608d3da
update yml
xlcrr Apr 20, 2025
6097631
delete deprecated file
xlcrr Apr 20, 2025
099c8d0
delete generate key
xlcrr Apr 20, 2025
831e2e8
-vvv
xlcrr Apr 20, 2025
1e4be88
update -vvv
xlcrr Apr 20, 2025
40b3363
yml
xlcrr Apr 20, 2025
626b6ab
yml again
xlcrr Apr 20, 2025
4562580
update yml
xlcrr Apr 20, 2025
ec1b265
update yml
xlcrr Apr 20, 2025
725feff
update
xlcrr Apr 20, 2025
8a3024d
try again
xlcrr Apr 20, 2025
58e044c
TEST OMG
xlcrr Apr 20, 2025
af6befe
update
xlcrr Apr 20, 2025
007cfa4
remove
xlcrr Apr 20, 2025
e7995dc
generate new app key
xlcrr Apr 20, 2025
393934a
again
xlcrr Apr 20, 2025
8b417fc
Test
xlcrr Apr 20, 2025
05eaa77
update yml
xlcrr Apr 20, 2025
9e19470
update yml
xlcrr Apr 20, 2025
85d0d09
test
xlcrr Apr 20, 2025
e9170a2
more test
xlcrr Apr 20, 2025
59ec8a1
test again
xlcrr Apr 20, 2025
95b139c
another test
xlcrr Apr 20, 2025
b183e2e
pass tests
xlcrr Apr 20, 2025
8329e6a
update app key yml
xlcrr Apr 20, 2025
785c584
update
xlcrr Apr 20, 2025
5b629bb
update yml
xlcrr Apr 20, 2025
2e56321
remove app key
xlcrr Apr 20, 2025
0ae9343
Try again
xlcrr Apr 20, 2025
22253f3
update tests, yml
xlcrr Apr 20, 2025
b87f4f5
add tests
xlcrr Apr 20, 2025
4591bcb
fix
xlcrr Apr 20, 2025
932b1fc
again
xlcrr Apr 20, 2025
f63b6ec
fix
xlcrr Apr 20, 2025
f4b50f2
again
xlcrr Apr 20, 2025
74b6dee
fix again
xlcrr Apr 20, 2025
0ab861f
test again
xlcrr Apr 20, 2025
978f610
fix?
xlcrr Apr 20, 2025
0ce7927
try again
xlcrr Apr 20, 2025
76c23f8
pls work
xlcrr Apr 20, 2025
6c4041f
test again
xlcrr Apr 21, 2025
8f75554
try again
xlcrr Apr 21, 2025
601aad4
remove verbose
xlcrr Apr 21, 2025
c35e212
test img
xlcrr Apr 21, 2025
9dd183e
update services
xlcrr Apr 21, 2025
9bb6c85
add calculate photo test
xlcrr Apr 21, 2025
f60f8b0
add achievements
xlcrr Apr 25, 2025
ddca49d
update redis service
xlcrr Apr 26, 2025
cc62f82
stash
xlcrr Apr 27, 2025
57535e7
update achievements
xlcrr Apr 28, 2025
bd4617c
update achievements
xlcrr Apr 29, 2025
68c1647
update achievements
xlcrr Apr 30, 2025
3e301f4
More efficient and idempotent redis and achievements
xlcrr May 3, 2025
f380264
more updates
xlcrr May 4, 2025
dc40226
update achievement engine
xlcrr May 5, 2025
bc4b206
updates
xlcrr May 6, 2025
4fb1512
update timeseries
xlcrr May 10, 2025
89d6b2d
update timeseries
xlcrr May 10, 2025
e902831
add photo metrics repo
xlcrr May 10, 2025
3bad3a1
add index
xlcrr May 10, 2025
12ae148
update migration script
xlcrr May 10, 2025
03996c6
update tags
xlcrr May 11, 2025
ae9fed5
update tags
xlcrr May 12, 2025
b389dc6
update redis
xlcrr May 13, 2025
1d5f80b
update tagging
xlcrr May 13, 2025
4d0a286
pass tests
xlcrr May 16, 2025
5f040d0
update achievements
xlcrr May 16, 2025
0f7e04b
update achievements
xlcrr May 17, 2025
844c13e
update achievements
xlcrr May 17, 2025
835dff3
bugs
xlcrr May 19, 2025
624594c
nearly there
xlcrr May 20, 2025
e3d9084
update achievements
xlcrr May 21, 2025
4e68dba
stash before refactor
xlcrr May 24, 2025
b7919f2
Claude + o3 conversation refactor
xlcrr May 24, 2025
029d5c0
day 2
xlcrr May 25, 2025
639aade
more updates to achievements
xlcrr May 26, 2025
be0eea5
update achievements
xlcrr May 29, 2025
ec3913e
update achievements
xlcrr May 31, 2025
1958282
update migration script and tests
xlcrr Jun 1, 2025
652b7ae
remove deprecated unit, fix redis test
xlcrr Jun 1, 2025
57b84fb
fix tests,remove deprecated
xlcrr Jun 1, 2025
3385ce6
cleanup
xlcrr Jun 1, 2025
c551ebf
fix unit tests dir
xlcrr Jun 1, 2025
c9dce80
update provider
xlcrr Jun 1, 2025
e075de3
update action
xlcrr Jun 1, 2025
a7e45c4
Merge pull request #674 from OpenLitterMap/claude/achievements-refactor
xlcrr Jun 1, 2025
5f26335
updates
xlcrr Jun 2, 2025
4b0d688
update tests
xlcrr Jun 3, 2025
39f8e39
update tests
xlcrr Jun 4, 2025
1d7f083
pass tests
xlcrr Jun 5, 2025
997fa6c
update redis & cache
xlcrr Jun 7, 2025
f78b5fd
improvements
xlcrr Jun 7, 2025
4913cb5
remove bloom filters
xlcrr Jun 8, 2025
10d2647
use lua script during redis collection
xlcrr Jun 8, 2025
f09c869
use photos or photoIds
xlcrr Jun 8, 2025
5221391
update caching
xlcrr Jun 8, 2025
97c4095
update redis tests
xlcrr Jun 8, 2025
64e5721
update achievement tests
xlcrr Jun 8, 2025
9b41bdf
update migration script
xlcrr Jun 9, 2025
b4cf276
fix last test
xlcrr Jun 11, 2025
38441a4
new achievements frontend, sanctum
xlcrr Jun 11, 2025
8813fee
update clusters weekend 1
xlcrr Jun 22, 2025
e8e33e3
update clusters
xlcrr Jun 27, 2025
ee3d71b
update clusters
xlcrr Jun 28, 2025
756a611
update clustering
xlcrr Jun 29, 2025
f929b5f
fix clustering tests
xlcrr Jun 29, 2025
c6a3484
remove old test
xlcrr Jun 29, 2025
64a4cbc
update clustering
xlcrr Jul 6, 2025
e3987b5
update clusters test
xlcrr Jul 12, 2025
ac731be
update about
xlcrr Jul 13, 2025
2df9717
update about page
xlcrr Jul 17, 2025
378cdd3
update about
xlcrr Jul 19, 2025
4c6bb04
update about, get points
xlcrr Jul 20, 2025
928326c
stash
xlcrr Jul 24, 2025
ef3c476
update points, about, translations
xlcrr Jul 25, 2025
70cb510
update spatial index, points controller, tests
xlcrr Jul 27, 2025
9c5d69e
optimise new points api
xlcrr Jul 28, 2025
60f87f5
refactoring
xlcrr Jul 29, 2025
5d051ed
fix lon,lat order, fix tests
xlcrr Jul 30, 2025
d660caf
fix about maps
xlcrr Jul 30, 2025
6867200
refactor about, langs
xlcrr Jul 31, 2025
eda98a5
update global map
xlcrr Aug 4, 2025
1ba2fb2
update stuff
xlcrr Aug 8, 2025
bb833a4
update create account
xlcrr Aug 9, 2025
48e0f64
update create account, terms & conditions
xlcrr Aug 10, 2025
da8a6c5
update create account, terms & conditions
xlcrr Aug 10, 2025
38f1359
update analyse points
xlcrr Aug 15, 2025
5618318
refactor global map, add stats
xlcrr Aug 16, 2025
03e3923
update location services
xlcrr Aug 23, 2025
968342f
update location services
xlcrr Aug 24, 2025
b976789
refactoring
xlcrr Aug 29, 2025
747d3ca
update everything
xlcrr Aug 30, 2025
4d5912f
more refactoring
xlcrr Aug 31, 2025
f006a02
fix xp tests
xlcrr Sep 6, 2025
83ee21d
fix calc xp + summary tests
xlcrr Sep 6, 2025
6e6b289
fix all tests, refactoring
xlcrr Sep 7, 2025
05db66b
update tagging
xlcrr Sep 13, 2025
9454743
update view uploads, tags
xlcrr Sep 14, 2025
32b05ed
get users photos + tags
xlcrr Sep 21, 2025
23a46d6
update points
xlcrr Sep 28, 2025
4afd3c4
update migration script
xlcrr Oct 3, 2025
e638bf8
tagging updates
xlcrr Oct 4, 2025
40ccb3c
fix map view, debug migration script
xlcrr Oct 5, 2025
580acc6
remove
xlcrr Oct 5, 2025
e730c64
get photo
xlcrr Oct 7, 2025
83812e1
update migration script
xlcrr Oct 12, 2025
a0aad2b
progress?
xlcrr Oct 18, 2025
4adabf0
update migration
xlcrr Oct 22, 2025
3936c11
updates
xlcrr Oct 25, 2025
043f8db
update tags brand migration
xlcrr Oct 26, 2025
796461e
more updates
xlcrr Oct 27, 2025
0e23ca7
more updates
xlcrr Nov 1, 2025
5a50543
update tagging
xlcrr Nov 2, 2025
2e0b4b1
update tags migration
xlcrr Nov 8, 2025
a502016
update tags wen fix
xlcrr Nov 9, 2025
dd46bad
update tags is hard
xlcrr Nov 15, 2025
4d44d5e
remove deprecated tests
xlcrr Nov 15, 2025
ddbf712
update tagging
xlcrr Nov 15, 2025
42f032e
add changelog history
xlcrr Nov 23, 2025
c9af1d9
update tagging
xlcrr Nov 23, 2025
f08115f
update tagging
xlcrr Nov 24, 2025
b1832fa
update add tags section
xlcrr Jan 11, 2026
1dea6f0
bug fixes
xlcrr Feb 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .DS_Store
Binary file not shown.
19 changes: 12 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ LOCATE_API_KEY=
MIX_GOOGLE_RECAPTCHA_KEY=6LcvHsIZAAAAAOG0q9-1vY3uWqu0iFvUC3tCNhID
MIX_GOOGLE_RECAPTCHA_SECRET=

BROADCAST_DRIVER=pusher
BROADCAST_DRIVER=reverb
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=redis
QUEUE_CONNECTION=redis

SESSION_DRIVER=cookie
SESSION_DOMAIN=olm.test
SANCTUM_STATEFUL_DOMAINS=olm.test

MAIL_MAILER=smtp
MAIL_HOST=localhost
MAIL_PORT=1025
Expand Down Expand Up @@ -56,11 +59,6 @@ x500_AWS_REGION=us-east-1
x500_AWS_BUCKET=olm-public-bbox
x500_AWS_ENDPOINT=http://192.168.56.4:9600

PUSHER_APP_ID=local
PUSHER_APP_KEY=local
PUSHER_APP_SECRET=local
PUSHER_APP_CLUSTER=eu

WEBSOCKET_BROADCAST_HOST=192.168.10.10

LOCATION_API_KEY=
Expand All @@ -70,6 +68,13 @@ BACKUP_ARCHIVE_PASSWORD=
DROPBOX_TOKEN=
SLACK_WEBHOOK_URL=

REVERB_APP_ID=1
REVERB_APP_KEY=2
REVERB_APP_SECRET=3
REVERB_HOST=olm.test
REVERB_PORT=8080
REVERB_SCHEME=https

OPTIMIZE="true"
NETWORK=preprod
NETWORK_PARAMS_FILE="preprod.json"
Expand Down
23 changes: 10 additions & 13 deletions .env.testing
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP_NAME=OpenLitterMap
APP_ENV=testing
APP_KEY=base64:wtfMWBVJMehE9KRxZqwTmY+G0vPoCoPOwtloNZmueLM=
APP_KEY=base64:WCUtPA8Ky7rrK2cckMwmSo5E58UuQk8wKUud7SqjAgk=
APP_DEBUG=true
APP_URL=http://olm.test
APP_ROOT_DIR=/home/vagrant/Code/olm
Expand All @@ -10,8 +10,8 @@ LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=olm
DB_USERNAME=homestead
DB_DATABASE=olm_test
DB_USERNAME=root
DB_PASSWORD=secret

# For Testing
Expand All @@ -20,14 +20,16 @@ DB_FOREIGN_KEYS=false
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_DB=1
REDIS_CLIENT=phpredis

LOCATE_API_KEY=

MIX_GOOGLE_RECAPTCHA_KEY=
MIX_GOOGLE_RECAPTCHA_SECRET=

BROADCAST_DRIVER=pusher
CACHE_DRIVER=file
BROADCAST_DRIVER=reverb
CACHE_DRIVER=redis
SESSION_DRIVER=file
QUEUE_DRIVER=redis
QUEUE_CONNECTION=redis
Expand All @@ -54,19 +56,14 @@ AWS_KEY=homestead
AWS_SECRET=secretkey
AWS_BUCKET=olm-public
AWS_REGION=us-east-1
AWS_ENDPOINT=http://192.168.56.4:9600
AWS_ENDPOINT=http://127.0.0.1:9000
MINIO_PATH_STYLE_ENDPOINT=true

x500_AWS_KEY=homestead
x500_AWS_SECRET=secretkey
x500_AWS_REGION=us-east-1
x500_AWS_BUCKET=olm-public-bbox
x500_AWS_ENDPOINT=http://192.168.56.4:9600

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=eu
LARAVEL_WEBSOCKETS_PORT=6002
x500_AWS_ENDPOINT=http://127.0.0.1:9000

WEBSOCKET_BROADCAST_HOST=192.168.56.4

Expand Down
179 changes: 99 additions & 80 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
@@ -1,103 +1,122 @@
name: Laravel
name: Laravel CI

on:
push:
branches: [ master, staging ]
branches:
- master
- staging
- upgrade/tagging-2025
pull_request:
branches: [ master, staging ]
branches:
- master
- staging
- upgrade/tagging-2025

jobs:
laravel-tests:

tests:
runs-on: ubuntu-latest

services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: olm_test
ports: [3306:3306]
options: >-
--health-cmd="mysqladmin ping -h 127.0.0.1 -psecret"
--health-interval=10s --health-timeout=5s --health-retries=3

redis:
image: redis:7
ports: [6379:6379]

env:
APP_ENV: testing

# database
DB_CONNECTION: mysql
DB_HOST: 127.0.0.1
DB_PORT: 3306
DB_DATABASE: olm_test
DB_USERNAME: root
DB_PASSWORD: password
DB_PASSWORD: secret

# misc drivers
BROADCAST_DRIVER: log
CACHE_DRIVER: array
QUEUE_CONNECTION: sync
SESSION_DRIVER: array
AWS_KEY: minioadmin
AWS_SECRET: minioadmin
AWS_REGION: us-east-1

# fake S3/MinIO (used only by tests)
AWS_ACCESS_KEY_ID: minioadmin
AWS_SECRET_ACCESS_KEY: minioadmin
AWS_DEFAULT_REGION: us-east-1
AWS_EC2_METADATA_DISABLED: true
AWS_BUCKET: olm-public
AWS_ENDPOINT: http://127.0.0.1:9000
x500_AWS_KEY: minioadmin
x500_AWS_SECRET: minioadmin
x500_AWS_ACCESS_KEY_ID: minioadmin
x500_AWS_SECRET_ACCESS_KEY: minioadmin
x500_AWS_REGION: us-east-1
x500_AWS_BUCKET: olm-public-bbox
x500_AWS_ENDPOINT: http://127.0.0.1:9000
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: olm_test
ports:
- 3306/tcp
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis
ports:
- 6379/tcp
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, dom, fileinfo, mysql
# coverage: xdebug #optional
- uses: actions/checkout@v3
with:
node-version: 18.20.3
- uses: actions/setup-node@v3
with:
node-version: 18.20.3
- name: Start mysql service
run: sudo service mysql start
- name: Setup minio
run: |
docker run -d -p 9000:9000 --name minio \
-e "MINIO_ACCESS_KEY=minioadmin" \
-e "MINIO_SECRET_KEY=minioadmin" \
-v /tmp/data:/data \
-v /tmp/config:/root/.minio \
minio/minio server /data

export AWS_ACCESS_KEY_ID=minioadmin
export AWS_SECRET_ACCESS_KEY=minioadmin
export AWS_EC2_METADATA_DISABLED=true

aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://olm-public
aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://olm-public-bbox
- 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
- name: Install Passport
run: php artisan passport:keys
- name: Clear Config
run: php artisan config:clear
- name: Run Migration
run: php artisan migrate -v
env:
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
REDIS_PORT: ${{ job.services.redis.ports['6379'] }}
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Install NPM assets
run: npm install --silent --force
- name: Compile NPM assets
run: npm run build --silent
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/bin/phpunit
env:
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
REDIS_PORT: ${{ job.services.redis.ports['6379'] }}
- name: Checkout code
uses: actions/checkout@v3

- name: Copy test fixture image
run: |
mkdir -p storage/framework/testing
cp tests/Unit/img_with_exif.JPG storage/framework/testing/img_with_exif.JPG

- name: Remove old config cache
run: rm -f bootstrap/cache/config.php

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: mbstring, dom, fileinfo, mysql, pdo_mysql

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Prepare .env
run: cp .env.testing .env

- name: Wait for MySQL
run: |
for i in {1..30}; do
nc -z 127.0.0.1 3306 && exit 0
echo "Waiting for MySQL…"
sleep 2
done
exit 1

- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader --no-scripts

- name: Discover packages
run: php artisan package:discover --ansi

- name: Generate Passport encryption keys
run: php artisan passport:keys --force

- name: Install Passport (keys + clients)
run: php artisan passport:install --no-interaction

- name: Run migrations
run: php artisan migrate --force --no-interaction -vvv

- name: npm ci & build (optional)
run: |
npm ci --silent --force
npm run build --if-present

- name: PHPUnit
run: vendor/bin/phpunit --colors=always
env:
REDIS_PORT: ${{ job.services.redis.ports[6379] }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ yarn-error.log
.vscode
.idea
.eslintignore
/storage/seeders/brands.txt
17 changes: 17 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"semi": true,
"singleQuote": true,
"printWidth": 120,
"tabWidth": 4,
"trailingComma": "es5",
"bracketSpacing": true,
"vueIndentScriptAndStyle": false,
"overrides": [
{
"files": "*.vue",
"options": {
"vueIndentScriptAndStyle": false
}
}
]
}
2 changes: 1 addition & 1 deletion .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ php:
js:
finder:
not-name:
- webpack.mix.js
- webpack.mix.old_js
css: true
Loading
Loading