Commit Graph
177 Commits
Author SHA1 Message Date
Adam Daley 0ff3f9bc9e Update Renovate and README
Update Renovate to use PHP 8.1 and fix the README CI link.
2023-11-29 20:09:22 +00:00
Adam Daley fbf0e95714 Update PHP CI build dependency caching 2023-11-29 17:08:57 +00:00
Adam Daley 2d7661b110 Update CI workflow to fix Renovate 2023-11-29 14:08:14 +00:00
Adam Daley 755a33050d Streamline CI workflows (#1229)
* Move PHP build and test steps to reusable workflows

* Update Spellcheck CI workflow

* Ignore erroneous PHPStan error in SentryHelper

* Update workflows to run on renovate branches
2023-11-29 00:56:25 +00:00
Adam Daley 4676e02ac0 Delete .github/workflows/ckeditor.yml 2023-11-25 04:21:52 +00:00
Adam Daley d18c1fd9cb Disable Dependabot 2023-11-25 03:33:37 +00:00
Adam Daley 1028d759b9 Update renovate.json 2023-11-25 02:28:38 +00:00
Adam Daley 3fb62b45d0 Update renovate.json 2023-11-25 02:07:00 +00:00
Adam Daley 24a57aed0d Update renovate.json 2023-11-25 00:40:32 +00:00
Adam Daley e700efc6b2 Update renovate.json 2023-11-25 00:31:44 +00:00
Adam Daley 5a582b26ba Update renovate.json 2023-11-25 00:27:28 +00:00
renovate[bot] 10771c7cd3 Add renovate.json 2023-11-24 22:51:39 +00:00
dependabot[bot] a46bec22a3 Bump streetsidesoftware/cspell-action from 4 to 5 (#1830)
Bumps [streetsidesoftware/cspell-action](https://github.com/streetsidesoftware/cspell-action) from 4 to 5.
- [Release notes](https://github.com/streetsidesoftware/cspell-action/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: streetsidesoftware/cspell-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 03:28:59 -08:00
Belle Aerni 50043e6211 Run Rector against our tests (#1761)
* Update rector config to include tests

* Run Rector against the tests

* Delete test-results

* Update .gitignore

* Correctly set the PHP min to 8.1, split the configs

* Corrected PHPDoc

* Deleted tests we can't really get to pass

PHPunit is hard-coded to fail when a class has a return type of `never`, which is the correct return type of our redirect function (and rightfully so).

No way to disable the exception as far as we can tell
2023-11-11 18:41:09 +00:00
Adam Daley 276df9a58e Update PHPUnit to version 10 (#1798)
* Update PHPUnit to version 10

Update composer and CI version of PHPUnit to 10, and migrate XML config to updated schema.

* Update tests for PHPUnit 10

Update tests to replace depreciated functions in PHPUnit 10. Also, remove risky tests which don't assert anything.
2023-11-09 10:43:30 +01:00
Adam DaleyandBelle Aerni b3321a8dd3 Update to Sentry v4 (#1780)
* Bump minimum PHP version to 8.1

* Missed these too

* Shit's broke and stupid as fuck

* Update SentryHelper.php

* Update package-lock.json

* I did the fixing

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-11-07 17:49:16 -08:00
Belle Aerni 602b537996 Opt-in error reporting via Sentry.io (#1732)
* Began implementing Sentry.io support

* Added to the installer

* Added the ID to the bug report template and UI

* Hook it into our error handler, added the ability to filter by error code

* Attempting to add the DSN via GH actions

* Spelling and making PHPstan happy

* Skip exceptions for various incomplete configurations

Also brings in some of the category suggestions made by @Anuril in #195

* Update tests to account for changes

* Added & renamed exception classes

* Fix tests

* Change a bunch of items to be InformationExceptions

* Use a lighter HTTP client, fixed API error reporting

* I guess that's not needed now?

Arighty then

* Improvements, additional info added

* Update SentryHelper.php

* Improved error logging, added instance ID to error page

Also made it so that errors are correctly sent to Sentry rather than exclusively exceptions

* Make the tests happy

* Added the link, improved wording

Also removed the "performance" part of the reporting as it needs to be added to the front-end and I'm not currently implementing that

* Began implementing UI alerts and info

* Added the ability to toggle, fixed tests, use path constants

* Added some useful info & links to the page

* These should be InformationException

* Fix the automated Sentry DSN entry

* Fix the install number text

* Minor cleanup, converted more to InformationException

* Replaced some direct config references with constants

We have the BB_DEBUG constant to indicate if we have debug mode enabled or not, so we shouldn't be directly referencing it in the config file unless we actually need to do so.

Using the constant means there's less locations to update the reference if the config structure is changed

* Bugfix

* Consistency & fixed a PHPDoc

* Corrections

* We actually do want exceptions thrown here

* Change how we get the instance ID

* Stability improvements

Having support for translatable error pages was proving to be problematic, so I had to remove it.

I also had to update the exception class to handle cases where the trans function wasn't setup yet (needed for the /run-patcher page if an error occurs)

* Missed this change on git

* Also fix the variable names...

* Re-added new deps after rebase

* This should also accept "Error" types

* Added more info to the bug report and removed a dug line

* This wasn't supposed to get renamed

* Updated some missed references to Box_Exception
2023-10-28 18:40:39 -07:00
dependabot[bot] 8e4df4790b Bump actions/setup-node from 3 to 4 (#1751) 2023-10-24 15:36:21 +03:00
dependabot[bot] 15197846b4 Bump streetsidesoftware/cspell-action from 3 to 4 (#1744)
Bumps [streetsidesoftware/cspell-action](https://github.com/streetsidesoftware/cspell-action) from 3 to 4.
- [Release notes](https://github.com/streetsidesoftware/cspell-action/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: streetsidesoftware/cspell-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 13:22:54 +02:00
Belle Aerni b8d3d35ad2 Significantly improve translation management (#1661)
* Started work on locale disable / enable functionality

* Implemented enable / disable functionality

* Implemented completion bar

* Update the preview workflow to use locale releases

* Fix typos, correct workflow

* Use the latest translation release

* Fix tests

* Fixed typo, removed crappy instructions

* fkn spelling
2023-09-30 22:19:15 +03:00
Belle Aerni 8c047bc0da Fix to allow analysis to run against the installer (#1633) 2023-09-25 22:02:57 +03:00
YağızhanandBelle Aerni dbcf9a3ad4 Rewritten bin/prepare & +FOSSBilling_Environment (#1622)
* Rewritten bin/prepare & +FOSSBilling_Environment

* -redundancy

* - unnecessary bits

* nothing much

* Fix inverted logic, use new function in missed location

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-09-22 18:19:02 -07:00
dependabot[bot] 8d6bc16476 Bump actions/checkout from 3 to 4 (#1580)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 11:26:28 +02:00
dependabot[bot] 52ea83c1a5 Bump streetsidesoftware/cspell-action from 2 to 3 (#1557)
Bumps [streetsidesoftware/cspell-action](https://github.com/streetsidesoftware/cspell-action) from 2 to 3.
- [Release notes](https://github.com/streetsidesoftware/cspell-action/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: streetsidesoftware/cspell-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-22 13:49:41 +02:00
Belle Aerni 01894c319b Quiet down our automated PRs (#1523) 2023-08-08 13:58:56 +02:00
Belle Aerni 7584387207 Run the CS workflow on push to main & add rector (#1497)
* Added a new rector config

* Fixes & corrections

* Spelling

* Remove commented out config
2023-07-30 08:32:55 -07:00
Yağızhanandfossbilling-bot fd872ac941 Implement PHP-CS-Fixer as an automated workflow (#1240)
* Implement PHP-CS-Fixer as an automated workflow

* Apply PHP-CS-Fixer changes

---------

Co-authored-by: fossbilling-bot <121974958+fossbilling-bot@users.noreply.github.com>
2023-07-30 06:49:11 -07:00
Adam Daley 97ca2491dd Update Dependabot config to ignore incorrect PHPUnit action versions (#1208)
Update Dependabot workflow config to ignore incorrect action versions due to php-actions/phpunit#49.
2023-05-03 11:13:30 -07:00
Adam Daley 8fdfbb2d0f Update PHP CI workflow with minor corrections (#1209)
* Update PHP CI workflow with minor corrections

* Update README to fix PHP CI workflow badge
2023-05-03 18:04:08 +01:00
Adam Daley 7c755eed6d Revert "Bump php-actions/phpunit from 3 to 9" (#1207) 2023-05-03 17:04:54 +03:00
dependabot[bot] 62ba0612d8 Bump php-actions/phpunit from 3 to 9 (#1205)
Bumps [php-actions/phpunit](https://github.com/php-actions/phpunit) from 3 to 9.
- [Release notes](https://github.com/php-actions/phpunit/releases)
- [Commits](https://github.com/php-actions/phpunit/compare/v3...v9)

---
updated-dependencies:
- dependency-name: php-actions/phpunit
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 06:50:06 +02:00
Adam Daley 778e40f461 Update Github workflows (#1203)
* Update labeler workflow

Update labeler workflow to remove old labels and paths, fix path patterns, and include more labels.

* Update release drafter workflow config

Update the release drafter workflow config to remove autolabeler options as unnecessary and currently broken.

* Update Dependabot workflow config

Update Dependabot workflow config with new Composer manifests location.

* Update spellcheck workflow

Update spellcheck workflow to change filename, also run on push, and to only check changed files.

* Merge PHP build and tests into one PHP CI workflow

* Update CKEditor workflow

Update CKEditor workflow to change file name and to only run on repos owned by the FOSSBilling organisation.

* Fix Preview double zip issue
2023-05-02 05:40:34 +01:00
Adam Daley e43069026d Bump PHPStan action version to latest (#1200) 2023-05-01 12:23:36 +02:00
Belle AerniandAdam Daley e3d6bc9ad9 Introduce a cspell workflow (#1192)
* Introduce a cspell workflow

* Update cspell.yml

* Update cspell.yml

* Why is it seemingly ignoring the config?

* Waiit a min

* Fixed a bunch of spelling mistakes

* And set it back to incremental mode

* That is actually supposed to be spelled wrong..

Because BoxBilling :)

* Capitalization

* I swear I fixed this as well

* Update cspell.json

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-30 00:05:25 -07:00
Adam Daley e3967dfe96 Move composer files to project root (#1191) 2023-04-30 07:17:06 +01:00
Yağızhan 191233ff86 Renamed Box_Requirements and Box_Version (#1146)
* Renamed Box_Requirements and Box_Version

* Fixed the reference in the GitHub workflow
2023-04-22 18:55:48 +02:00
Adam Daley b82c573793 Bump node version and fix release (#1092)
Bump node version to current LTS, and fix release to include hidden files.
2023-04-09 08:17:32 +02:00
dependabot[bot] b3dec589a0 Bump peter-evans/create-pull-request from 4 to 5 (#1065)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4 to 5.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v4...v5)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 12:02:06 +01:00
Jaap Marcus a8a1caa4cf Update package.lock after update (#884)
* Update ckeditor_update.yml

* Run under /src/

* Remove trailing space

* Update ckeditor_update.yml
2023-03-06 11:01:18 +02:00
Belle Aerni 1430dbfc22 Update ckeditor_update.yml (#857) 2023-02-24 07:47:36 +02:00
Shamshid a72cc30cc8 Replace Gulp with Webpack Encore (#827)
* remove Gulp deps, set Encore deps and move theme deps
* install webpack-encore-bundle for twig extensions
* set encore extension for themes using Encore
* remove Gulp tasks and add Webpack Encore config
* set purgecss for build and improve broswerlist coverage
* import svg icons for svg-sprite
* set main entrypoints for Encore
* fix undefined errors
* replace tags with Encore twig functions
* remove duplicate dev dependencies from Wysiwyg
* remove bundle included spectrum assets
* replace artifact build command
* set locale flag tom-select
* remove purgecss
2023-02-21 11:42:11 +02:00
Belle Aerni 4b7ddc76e0 Create a workflow to automate CKEditor updates 2023-02-15 11:52:17 -08:00
Belle Aerni 0550715743 Update dependabot.yml 2023-02-15 09:32:39 -08:00
Belle Aerni f6a8369e0a Tell dependabot to ignore CKEditor 2023-02-15 09:05:15 -08:00
Anyx 7cc14f56b6 Format YAML
Fix the whitespace issue.
2023-01-27 01:19:54 +02:00
Anyx 33b7585d92 Move issue templates (& change bug report to form)
Move issue templates to the main repo. Port the changes from https://github.com/FOSSBilling/.github/pull/2 (Replace the bug report template with a template form).
2023-01-27 01:01:22 +02:00
Belle Aerni 3011c8a4b0 Move PHPStan to it's own action & bump the scanning level (#629)
* Move PHPStan to it's own action

* Bump PHPStan to level 1

* This fix it?

* Update Box_MailTest.php

* And fix a typo in the action

* Update phpstan.yml

* Update phpstan.yml

* Test
2022-12-28 04:32:17 -08:00
Belle Aerni 58c4a75ff4 Slightly refactor how we update the locales submodule (#623)
* Update the submodule to the latest

* Update artifact.yml

* Also remove .po files since those are unneeded

* Remove some other unneeded files

* I have zero idea why that failed?
2022-12-22 12:32:35 -08:00
Belle Aerni 3c49bfd269 Increase memory limit 2022-12-19 13:00:23 -08:00
Belle Aerni c4100bb980 Update php.yml 2022-12-19 12:58:13 -08:00