193 Commits
Author SHA1 Message Date
renovate[bot] 21bd96f5ab Update github/codeql-action action to v3 (#1963)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-13 16:08:03 -08:00
Adam Daley cf835b9691 Cleanup outdated and unmaintained files (#1936) 2023-12-08 05:45:20 +00:00
Adam Daley 3d3bcea0bf Update merge hold workflow to always return success or failure (#1935) 2023-12-07 17:32:04 +00:00
Adam Daleyandrenovate[bot] 2a14679d2e Move Docker file and add automated Docker builds (#1916)
* Rework reusable workflows to use composite actions (#1918)

* Update FOSSBilling/.workflows digest to 5c7b960

* Update dependency apexcharts to v3.44.2

* Update CKEditor to v39.3.0 (minor) (#1931)

Update CKEditor to v39.3.0

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency core-js to v3.34.0 (#1932)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency cypress to v13.6.1

* Update dependency flag-icons to v7.0.3

* Update dependency phpunit/phpunit to v10.5.2

* Bump lcharette/webpack-encore-twig to v1.2 (#1933)

Bump lcharette/webpack-encore-twig

Bump lcharette/webpack-encore-twig to ^1.2 and remove symfony/webpack-encore-bundle override as now fixed upstream.

* Move Dockerfile from Docker repo

* Add Docker preview build and push to CI

* Add workflow to build and tag Docker builds on release

* Update workflow to build and tag Docker builds on release

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 17:29:45 +00:00
renovate[bot] c3c79ff6d1 Update FOSSBilling/.workflows digest to fd29998 2023-12-07 16:37:48 +00:00
renovate[bot] d03183b7d7 Update FOSSBilling/.workflows digest to 5c7b960 2023-12-07 00:08:07 +00:00
Adam Daley 8aafe0ee40 Rework reusable workflows to use composite actions (#1918) 2023-12-06 20:12:38 +00:00
Belle Aerni 5643508366 Update labeler.yml (#1927) 2023-12-05 13:11:10 -08:00
Belle Aerni c9c38a1210 Looks like a singular space broke it (#1926) 2023-12-05 13:02:07 -08:00
Belle Aerni 7431e3ed29 Fix labler (#1925) 2023-12-05 12:57:22 -08:00
renovate[bot] c40078e80e Update actions/labeler action to v5 (#1920)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 15:34:01 -08:00
Adam Daley c6669bbf51 Fix CI preview downloadable archive name 2023-12-04 10:48:35 +00:00
Adam Daley 3ca602d5c6 Update CI to include preview build and upload steps (#1915) 2023-12-04 10:05:59 +00:00
Adam Daley b832cdee55 Update CI workflow 2023-12-04 00:41:47 +00:00
Adam Daley 3eeb48d9b0 Update CI workflows (#1908)
Update CI workflow to improve PHP build and test
2023-12-02 06:10:22 +00:00
Belle Aerni e39fad02b6 Fix tests (#1912) 2023-12-01 21:12:58 -08:00
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