Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
18962ec
Change back to just centre
lauragurney Oct 20, 2023
ab51d18
Merge pull request #715 from neontribe/bug-change-distributing-centre…
Oct 26, 2023
007879c
Create build-and-push-to-dockerhub.yml (#716)
tobybatch Oct 27, 2023
6fb3fca
feat: moved docker files into service (#721)
tobybatch Oct 30, 2023
67cb796
chore: added debug to the workflow
tobybatch Oct 30, 2023
7e390ef
chore: tryng new branch name
tobybatch Oct 30, 2023
988a1a7
chore: tryng new branch name
tobybatch Oct 30, 2023
637f8f6
chore: tryng new branch name
tobybatch Oct 30, 2023
f79ef38
chore: tryng new branch name
tobybatch Oct 30, 2023
7122480
fix: added workflow dispatch
tobybatch Oct 30, 2023
5d21583
fix: cleraned up branch name
tobybatch Oct 30, 2023
2475cdc
docs: tweak on release process
tobybatch Nov 10, 2023
e3202ab
feat: workfloes on all branches
tobybatch Nov 20, 2023
edecad5
chore: docs and a reimbursed seeder (#703)
tobybatch Nov 21, 2023
3086408
Dev/large file encryption (#725)
gxnda Nov 24, 2023
ebcecf4
Update build-and-push-to-dockerhub.yml
tobybatch Nov 24, 2023
0f30402
fix: suppressed record with null values inthe payment tempate
tobybatch Nov 21, 2023
1126a49
fix: early update on workflow files
tobybatch Nov 24, 2023
1606003
Added command line file decryption and echo (#726)
gxnda Nov 24, 2023
7bcedc7
Write encrypted logs to file rather than database (#727)
gxnda Nov 24, 2023
38e7ab9
chore: disabled workflow
tobybatch Nov 27, 2023
31c3a77
fix: labels in the docker
tobybatch Dec 4, 2023
5ee9e5b
fix: docker logs to std out
tobybatch Dec 5, 2023
71f66d6
Dev/large file encryption (#729)
gxnda Dec 7, 2023
731e789
feat: added ui for log downloads by f-year (#728)
gxnda Dec 7, 2023
b15f1d7
docs: added diags for erd and server layout (#731)
tobybatch Dec 22, 2023
7ab2805
Updated to include more of the images.
charlesstrange2 Dec 22, 2023
4109ff7
Merge pull request #735 from neontribe/EXP-documentation
charlesstrange2 Dec 22, 2023
e17e99f
feat: adds voucher state history to voucher deep exports (#736)
tobybatch Jan 4, 2024
4862eb6
feat: adds a cli encrypter (#734)
tobybatch Jan 23, 2024
9dcfcc3
chore: upgrade php packages (#738)
tobybatch Jan 29, 2024
e653d5c
Merge branch 'main' into develop
tobybatch Jan 29, 2024
716781d
chore: post merge cleanup!
tobybatch Jan 29, 2024
ec88c94
Merge branch 'main' into develop
tobybatch Feb 8, 2024
e34f713
feat: fixed docker build for prod env
tobybatch Feb 13, 2024
308a1c4
fix: permissisons on passport keys for the docker
tobybatch Feb 14, 2024
e853876
chore: docker instructions
tobybatch Feb 14, 2024
18c06fa
chore: stand alone docker start up
tobybatch Feb 14, 2024
0291ae9
Dev/add commitlint (#741)
tobybatch Feb 26, 2024
0c21c80
chore(deps): bump phpseclib/phpseclib from 3.0.20 to 3.0.36 (#744)
dependabot[bot] Feb 26, 2024
d9702df
chore(deps): bump follow-redirects from 1.15.2 to 1.15.5 (#745)
dependabot[bot] Feb 26, 2024
0f0e8de
chore(deps): bump phenx/php-svg-lib from 0.5.0 to 0.5.2 (#743)
dependabot[bot] Feb 26, 2024
da889f7
feat: enabled tests in gh action (#747)
tobybatch Feb 27, 2024
47963f8
Merge branch 'main' into develop
tobybatch Feb 28, 2024
9989233
fix: backed out commitzen and husky coz node 16 is incompatible
tobybatch Feb 28, 2024
a79ced8
feat: add coverage check to tests (#749)
tobybatch Feb 28, 2024
c0998ff
docs: full doc revision (#748)
tobybatch Feb 29, 2024
f8e03db
hotfix: defer scottish children
lauragurney Feb 29, 2024
736ed99
Merge pull request #751 from neontribe/hotfix/928-no-defer-option-for…
Feb 29, 2024
9b35660
fix: node to the same version as the server (#750)
tobybatch Feb 29, 2024
ef9696a
Update laravel.yml (#752)
tobybatch Mar 4, 2024
191e159
fix: remove 1st March
lauragurney Mar 4, 2024
2a64205
chore: added debug to vouchers trans (#754)
tobybatch Mar 4, 2024
21db086
fix: test
lauragurney Mar 4, 2024
4299ca6
Revert "fix: test"
lauragurney Mar 4, 2024
b119503
Merge pull request #753 from neontribe/hotfix-966-remove-1st-march-fr…
Mar 4, 2024
dc8367a
Fix 977 fix tests causing workflow failures in GitHub (#755)
Mar 4, 2024
ee525e9
feat: added a custom dependabot config (#756)
tobybatch Mar 5, 2024
fa09fb5
docs: included the gh reloease command in the docs (#762)
tobybatch Mar 5, 2024
824a6ba
chore: bump friendsofphp/php-cs-fixer from 3.48.0 to 3.51.0 (#761)
dependabot[bot] Mar 5, 2024
d5e9ab0
chore: bump phpmd/phpmd from 2.13.0 to 2.15.0 (#757)
dependabot[bot] Mar 5, 2024
88d6364
docs: more tweaking of the release docs
tobybatch Mar 5, 2024
3d7c04f
chore: bump ramsey/uuid from 4.7.4 to 4.7.5 (#758)
dependabot[bot] Mar 5, 2024
57073aa
chore: bump laravel/ui from 4.2.2 to 4.4.0 (#759)
dependabot[bot] Mar 5, 2024
4f2f130
chore: bump sebdesign/laravel-state-machine from 3.4.1 to 3.4.3 (#760)
dependabot[bot] Mar 5, 2024
d0c99d6
fix: commands exit without crashing the thread (#763)
tobybatch Mar 7, 2024
35b2fe8
Tests/coverage for all the commands (#764)
tobybatch Mar 8, 2024
a752323
chore: bump barryvdh/laravel-debugbar from 3.8.1 to 3.11.0 (#765)
dependabot[bot] Mar 11, 2024
b01822b
chore: bump symfony/console from 6.3.0 to 6.4.4 (#766)
dependabot[bot] Mar 11, 2024
b7fcab6
chore: bump laravel/legacy-factories from 1.3.2 to 1.4.0 (#767)
dependabot[bot] Mar 11, 2024
610efad
chore: bump symfony/lock from 6.3.1 to 6.4.3 (#769)
dependabot[bot] Mar 11, 2024
a6a3f68
chore: bump symfony/event-dispatcher from 6.3.0 to 6.4.3 (#768)
dependabot[bot] Mar 11, 2024
06c164a
Update export-all-in-years.sh
tobybatch Apr 3, 2024
b88d681
feat: better file locating for mvl exports (#782)
tobybatch Apr 30, 2024
41cf6f8
chore: update documentation
charlesstrange2 Dec 16, 2024
ccf96a8
fix: broken tests and quality tools; remove husky
charlesstrange2 Dec 17, 2024
21b6866
fix: another crack at the test.
charlesstrange2 Dec 17, 2024
a7f43b2
Merge pull request #792 from neontribe/improve-documentation
charlesstrange2 Dec 17, 2024
aedc972
Merge remote-tracking branch 'origin/main' into reconcile-into-dev
charlesstrange2 Dec 17, 2024
e1d8401
chore: compare develop against current live for missing hotfixes
charlesstrange2 Dec 17, 2024
5bfa1ee
chore: pull in MVL fudge branch
charlesstrange2 Dec 17, 2024
695aa59
feat: remove travis
charlesstrange2 Dec 17, 2024
1940c48
chore: composer update
charlesstrange2 Dec 17, 2024
0c692c1
chore: set composer.json levels
charlesstrange2 Dec 17, 2024
579b369
chore: yarn upgrade
charlesstrange2 Dec 17, 2024
c83be74
chore: upgrade sass > 16, and address app.scss changes
charlesstrange2 Dec 18, 2024
692d46d
chore: switch to new larastan
charlesstrange2 Dec 18, 2024
5a52adb
chore: upgrade laravel-dompdf > 3.0.0 (and dompdf > 3.0.1)
charlesstrange2 Dec 18, 2024
1b291cf
chore: upgrade sebdesign/laravel-state-machine > 3.4.4
charlesstrange2 Dec 18, 2024
298b684
chore: upgrade highsolutions/laravel-searchy > 11.0
charlesstrange2 Dec 18, 2024
9b0c12d
chore: upgrade laravel/browser-kit-testing > 6.4.0 (for l10 compat)
charlesstrange2 Dec 18, 2024
fdce574
chore: upgrade filp/whoops > 2.16.0
charlesstrange2 Dec 18, 2024
fcfae5d
chore: upgrade phpunit/phpunit -> 9.6.22
charlesstrange2 Dec 19, 2024
2845315
chore: upgrade ramsey/uuid -> 4.7.6
charlesstrange2 Dec 19, 2024
788fe31
chore: remove symfony/console and symfony/event-dispatcher fixed vers…
charlesstrange2 Dec 19, 2024
779dd61
chore: upgrade doctrine/dbal -> 3.9.3
charlesstrange2 Dec 19, 2024
06f1fa1
chore: upgrade Zipstream/Zipstream -> 3.1.1 (and fix usage)
charlesstrange2 Dec 19, 2024
28e6b64
chore: update core packages
charlesstrange2 Dec 20, 2024
ed3d9ee
chore: move model $dates to $casts
charlesstrange2 Dec 20, 2024
98a986c
chore: fix test Es and Ds
charlesstrange2 Dec 21, 2024
7c3e4cb
chore: modernise Delivery and Voucher
charlesstrange2 Dec 26, 2024
4e3af8a
chore: fix DB::raw() changes
charlesstrange2 Jan 6, 2025
6dfd213
chore: remove registerPolicies()
charlesstrange2 Jan 6, 2025
8540e3e
chore: update config files to L10
charlesstrange2 Jan 7, 2025
6fe7069
chore: update mail config
charlesstrange2 Jan 7, 2025
ee26cdf
chore: php 8.2
charlesstrange2 Jan 7, 2025
8d2204d
chore: php-ide-helper 3.1.0
charlesstrange2 Jan 7, 2025
c9faaea
chore: etag-conditionals
charlesstrange2 Jan 8, 2025
b5ddf06
chore: use our fork for etag conditionals
charlesstrange2 Jan 8, 2025
f4b97df
chore: remove generators - un-supported
charlesstrange2 Jan 8, 2025
ec86678
chore: update phpunit to 10.5 and fix deprecations
charlesstrange2 Jan 8, 2025
077bc3b
chore: update laravel/browser-kit-testing > 7.2.2
charlesstrange2 Jan 8, 2025
e09e409
chore: update laravel/dusk > 8.2.12
charlesstrange2 Jan 8, 2025
bf14080
chore: update laravel and core components, modernise tests
charlesstrange2 Jan 8, 2025
23ac44e
chore: update migrations so sqlite can cope with dropColumns
charlesstrange2 Jan 9, 2025
4add5b4
chore: turn off password rehashing
charlesstrange2 Jan 9, 2025
7a1d17c
chore: fix migrations for tests part 1
charlesstrange2 Jan 9, 2025
0a63ed5
chore: rework tests to use refreshDatabase for speed where possible
charlesstrange2 Jan 9, 2025
ee68276
chore: fix migrations for tests part 2
charlesstrange2 Jan 9, 2025
75286a0
chore: fix migrations for tests part 3
charlesstrange2 Jan 10, 2025
474d975
chore: fix migrations for tests part 4
charlesstrange2 Jan 10, 2025
61ffae8
chore: fix migrations for tests part 5
charlesstrange2 Jan 10, 2025
f60ac6d
fix: Carbon 3 broke a validation rule
charlesstrange2 Jan 10, 2025
a6da893
fix: cast carbon 3 diifIn* functions to int to retain prior sums.
charlesstrange2 Jan 10, 2025
1ad319b
chore: update laravel/passport, again.
charlesstrange2 Jan 10, 2025
8faeec3
chore: update symfony/lock ^7.2.0
charlesstrange2 Jan 10, 2025
cbcbfd8
chore: update symfony/http-client ^7.2 for mailchimp
charlesstrange2 Jan 10, 2025
800a151
bug: remove duff secret
charlesstrange2 Jan 10, 2025
a2a84e1
bug: remove duff secret, again.
charlesstrange2 Jan 10, 2025
1681f5c
Merge pull request #799 from neontribe/upgrade-L10-L11
charlesstrange2 Jan 14, 2025
3e95d9a
Merge pull request #797 from neontribe/upgrade-L9-L10
charlesstrange2 Jan 14, 2025
31c7015
Merge pull request #795 from neontribe/upgrade-prep-reconcile-into-de…
charlesstrange2 Jan 14, 2025
4240e89
feat: makedeploy can make a test deploy
charlesstrange2 Jan 14, 2025
fd724a0
refactor: move makedeploy to bin
charlesstrange2 Jan 14, 2025
a32a658
fix: update docs
charlesstrange2 Jan 15, 2025
cda50ec
Merge pull request #800 from neontribe/2143-update-local-deploy-script
charlesstrange2 Jan 16, 2025
e0c1f4f
Merge pull request #801 from neontribe/update-docs
charlesstrange2 Jan 16, 2025
434cea2
fix: LargeVoucherSeeder history
charlesstrange2 Jan 17, 2025
f3cc4e1
Merge pull request #802 from neontribe/bug-fix-dates
charlesstrange2 Jan 21, 2025
d471fe6
chore: update moment.js to 2.30.1
charlesstrange2 Jan 21, 2025
c2cc3dd
fix: let moment accept leading 0s
charlesstrange2 Jan 21, 2025
34cb257
fix: remove a stray letter "k"
charlesstrange2 Jan 21, 2025
b4e5ff4
chore: update some documentation
charlesstrange2 Jan 21, 2025
2a5fce2
Merge pull request #803 from neontribe/2158
charlesstrange2 Jan 21, 2025
6712059
Merge pull request #804 from neontribe/2138-update-documentation
charlesstrange2 Jan 21, 2025
297e086
chore: bump 1.17.0
charlesstrange2 Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .docker/passport-install.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
<?php

if (! is_writeable("/opt/project/.env")) {
$projectHome = "/opt/project";

if (count($argv) > 1) {
// The first param is the project hme
$projectHome = $argv[1];
}

if (! is_writeable($projectHome . "/.env")) {
echo "Can't write to .env file\n";
exit(1);
}

$contents = file_get_contents("/opt/project/.env");
$contents = file_get_contents($projectHome . "/.env");
if (getenv("APP_ENV") == "prod" && strpos($contents, "PASSWORD_CLIENT_SECRET")) {
echo "PASSWORD_CLIENT_SECRET exists and env is production, not overwriting\n";
exit(0);
}

$lines = explode("\n", $contents);
$cleaned = [];
print_r($lines);
foreach ($lines as $line) {
if (!strpos($line, "PASSWORD_CLIENT") || !strpos($line, "PASSWORD_CLIENT_SECRET")) {
$cleaned[] = $line;
Expand All @@ -35,6 +41,6 @@
$cleaned[] = "PASSWORD_CLIENT_SECRET=" . $elements[2];
}
}
exec("chmod 600 /opt/project/storage/*.key");
exec("chmod 600 " . $projectHome . "/storage/*.key");

file_put_contents("/opt/project/.env", implode("\n", $lines + $cleaned));
file_put_contents($projectHome . "/.env", implode("\n", $lines + $cleaned));
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ DB_TESTING_MYSQL_USERNAME=homestead
DB_TESTING_MYSQL_PASSWORD=secret

BROADCAST_DRIVER=log
CACHE_DRIVER=file
CACHE_STORE=file
SESSION_DRIVER=file
QUEUE_DRIVER=database
QUEUE_CONNECTION=database

# Set this to true for production envs
SESSION_SECURE_COOKIE=false
Expand Down
34 changes: 34 additions & 0 deletions .env.ghactions
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
APP_DEBUG="true"
APP_ENV="local"
APP_KEY=
APP_LOG_LEVEL="debug"
APP_NAME="ARCVService"
APP_SEEDS="Dev"
APP_TIMEZONE="Europe/London"
APP_URL="http://0.0.0.0:8000"
APP_VER="1.9.0"
ARC_MARKET_URL="http://localhost:8081/"
ARC_SCHOOL_MONTH="9"
ARC_SERVICE_DOMAIN="arcv-service.test"
ARC_STORE_DOMAIN="arcv-store.test"
BROADCAST_DRIVER="log"
CACHE_STORE="file"
DB_CONNECTION="sqlite"
DB_DATABASE="/tmp/data.db"
MAIL_MAILER="log"
MAIL_ENCRYPTION="null"
MAIL_FROM_ADDRESS="from@example.com"
MAIL_FROM_NAME="Mailer Name"
MAIL_HOST="127.0.0.1"
MAIL_PASSWORD="null"
MAIL_PORT="1025"
MAIL_TO_ADMIN_ADDRESS="buck@example.com"
MAIL_TO_ADMIN_NAME="Buck Rogers"
MAIL_TO_DEVELOPER_NAME="User Support"
MAIL_TO_DEVELOPER_TEAM="arc@neontribe.co.uk"
MAIL_USERNAME="null"
PASSWORD_CLIENT=1
PASSWORD_CLIENT_SECRET=0
QUEUE_CONNECTION="sync"
SESSION_DRIVER="file"
SESSION_SECURE_COOKIE="false"
37 changes: 0 additions & 37 deletions .env.travis

This file was deleted.

16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# https://mglaman.dev/blog/my-dependabot-configuration-drupal-and-other-php-projects
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
commit-message:
prefix: chore

- package-ecosystem: composer
directory: /
schedule:
interval: weekly
commit-message:
prefix: chore
51 changes: 31 additions & 20 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,46 @@ name: Laravel

on:
workflow_dispatch:
# push:
# branches: [ "1.16/release" ]
# pull_request:
# branches: [ "1.16/release" ]
push:
# pull_request:
# branches: [ "1.16/release" ]

jobs:
laravel-tests:

test:
runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.0'
- uses: actions/checkout@v3

- uses: actions/checkout@v4

- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
run: php -r "file_exists('.env') || copy('.env.ghactions', '.env');"

- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Create DB
run: |
touch /tmp/data.db
php artisan migrate

- name: Generate key
run: php artisan key:generate

- name: Passport install
run: php .docker/passport-install.php .

- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Create Database

- name: Key Permissions
run: chmod 600 ./storage/*.key

- name: Run tests
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: vendor/bin/phpunit
PHPUNIT_SKIP_MYSQL_TEST=1 XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-xml target/coverage

- name: Check coverage
run: |
php artisan arc:test:coverage target/coverage/index.xml

# gh act -j test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ coverage
.php-cs-fixer.cache
*.swp
app/local
.env.local
arc_test_file_*
build
1 change: 0 additions & 1 deletion .husky/commit-msg

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
stable
20.11.1
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ ENV DB_PASSWORD=secret
ENV BROADCAST_DRIVER=log
ENV CACHE_DRIVER=file
ENV SESSION_DRIVER=file
ENV QUEUE_DRIVER=database
ENV QUEUE_CONNECTION=database
ENV SESSION_SECURE_COOKIE=false
ENV MAIL_MAILER=log
ENV MAIL_HOST=smtp.mailtrap.io
Expand Down
Loading
Loading