-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce the compatibility workflow (#2)
* Introduce the compatibility workflow * We don't need to do this here * It helps if this is put in the right folder * Update php-ci.yml * Also checkout * We can safely ignore this * Update phpstan.neon
- Loading branch information
1 parent
2b23548
commit 4ee23fe
Showing
15 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Check FOSSBilling Compatibility | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
phpstan: | ||
runs-on: ubuntu-latest | ||
|
||
name: PHPStan - FOSSBilling Preview | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Checkout FOSSBilling Source Code | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "FOSSBilling/FOSSBilling" | ||
path: "FOSSBilling" | ||
|
||
- name: Install Composer Dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
args: --working-dir=FOSSBilling | ||
dev: no | ||
|
||
- name: Run PHPStan | ||
uses: php-actions/phpstan@v3 | ||
with: | ||
php_version: latest | ||
configuration: phpstan.neon | ||
memory_limit: 512M | ||
|
||
phpstan-release: | ||
runs-on: ubuntu-latest | ||
|
||
name: PHPStan - FOSSBilling Release | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get the Latest FOSSBilling Release Tag | ||
uses: oprypin/find-latest-tag@v1 | ||
with: | ||
repository: "FOSSBilling/FOSSBilling" | ||
releases-only: true | ||
id: get_id | ||
|
||
- name: Checkout The Release tag | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "FOSSBilling/FOSSBilling" | ||
path: "FOSSBilling" | ||
ref: ${{ steps.get_id.outputs.tag }} | ||
|
||
- name: Install Composer Dependencies (<=0.4.x) | ||
if: ${{ hashFiles('FOSSBilling/src/composer.json') }} | ||
uses: php-actions/composer@v6 | ||
with: | ||
args: --working-dir=FOSSBilling/src | ||
dev: no | ||
|
||
- name: Install Composer Dependencies (>=0.5.0) | ||
if: ${{ hashFiles('FOSSBilling/composer.json') }} | ||
uses: php-actions/composer@v6 | ||
with: | ||
args: --working-dir=FOSSBilling/ | ||
dev: no | ||
|
||
- name: Run PHPStan | ||
uses: php-actions/phpstan@v3 | ||
with: | ||
php_version: latest | ||
configuration: phpstan.neon | ||
memory_limit: 512M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
parameters: | ||
level: 1 | ||
paths: | ||
- src | ||
- FOSSBilling | ||
excludePaths: | ||
analyse: | ||
- src/vendor | ||
- FOSSBilling | ||
ignoreErrors: | ||
- '#^Function __trans not found\.$#' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.