This repository has been archived by the owner on Dec 14, 2024. It is now read-only.
-
-
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.
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
- Loading branch information
Showing
2 changed files
with
105 additions
and
0 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,54 @@ | ||
name: analyse | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
analyse: | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
matrix: | ||
os: | ||
- "ubuntu-latest" | ||
php: | ||
- '8.0' | ||
experimental: | ||
- false | ||
|
||
name: PHP${{ matrix.php }} on ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo | ||
coverage: none | ||
|
||
- name: Setup CI Authentication | ||
run: | | ||
composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }} | ||
- name: Install Laravel Pint | ||
run: | | ||
composer require "laravel/pint:^1.1" --no-interaction --no-update | ||
- name: Install dependencies | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
dependency-versions: "highest" | ||
composer-options: "--prefer-dist --no-cache" | ||
|
||
- name: Installed dependencies | ||
run: composer show -D | ||
|
||
- name: Execute Code Style Analysis | ||
run: vendor/bin/pint --test | ||
|
||
- name: Execute Static Code Analysis | ||
run: vendor/bin/phpstan analyse |
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,51 @@ | ||
name: audits | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * 3' | ||
|
||
jobs: | ||
audit-dependencies: | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
matrix: | ||
os: | ||
- "ubuntu-latest" | ||
php: | ||
- '8.0' | ||
- 8.1 | ||
- 8.2 | ||
experimental: | ||
- true | ||
|
||
name: PHP${{ matrix.php }} on ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo | ||
coverage: none | ||
|
||
- name: Setup CI Authentication | ||
run: | | ||
composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }} | ||
- name: Install dependencies | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
dependency-versions: "highest" | ||
composer-options: "--prefer-dist --prefer-stable --no-cache" | ||
|
||
- name: Installed dependencies | ||
run: composer show -D | ||
|
||
- name: Audit dependencies | ||
run: composer audit |