-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(cicd): add psalm sca * chore: create ci workflow * chore: suppress PropertyNotSetInConstructor
- Loading branch information
Showing
5 changed files
with
1,036 additions
and
33 deletions.
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,73 @@ | ||
name: "Continuous Integration" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
phpunit: | ||
name: "Unit Tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: "pcov" | ||
php-version: "8.1" | ||
ini-values: memory_limit=-1 | ||
extensions: sodium, fileinfo, redis | ||
|
||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: "locked" | ||
|
||
- name: "Run PHPUnit" | ||
run: composer test | ||
|
||
psalm: | ||
name: "Static Analysis" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.1" | ||
ini-values: memory_limit=-1 | ||
extensions: sodium, fileinfo, redis | ||
|
||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: "locked" | ||
|
||
- name: "Run Psalm" | ||
run: composer psalm | ||
|
||
phpcs: | ||
name: "Code Style" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.1" | ||
ini-values: memory_limit=-1 | ||
extensions: sodium, fileinfo, redis | ||
|
||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: "locked" | ||
|
||
- name: "Run PHPCS" | ||
run: composer cs-check |
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
Oops, something went wrong.