Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Nov 15, 2024
1 parent 41e224f commit 98cc21a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 153 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/analyse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@ on:

jobs:
tests:
runs-on: ${{ matrix.os }}
runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
php:
- 8.2
- 8.3
laravel:
- "10.x"
dependencies:
- "highest"
- "11.x"
experimental:
- false

name: Laravel ${{ matrix.laravel }} on PHP${{ matrix.php }}-${{ matrix.os }} (${{ matrix.dependencies }})
name: Laravel:${{ matrix.laravel }} / PHP:${{ matrix.php }} Code Analysis

steps:
- name: Checkout code
Expand All @@ -38,7 +34,7 @@ jobs:
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
dependency-versions: "highest"
composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}"

- name: Installed dependencies
Expand Down
54 changes: 8 additions & 46 deletions .github/workflows/audits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,25 @@ on:
workflow_dispatch:

jobs:
audit-dependencies-on-laravel-11:
runs-on: ${{ matrix.os }}
audit:
runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
php:
- 8.1
- 8.2
- 8.3
laravel:
- "10.x"
- "11.x"
experimental:
- false
exclude:
- php: 8.1
laravel: "11.x"

name: PHP${{ matrix.php }}-${{ matrix.os }} with Laravel ${{ matrix.laravel }}
name: Laravel:${{ matrix.laravel }} / PHP:${{ matrix.php }} Code Audit

steps:
- name: Checkout code
Expand Down Expand Up @@ -49,44 +52,3 @@ jobs:

- name: Audit dependencies
run: composer audit

audit-dependencies-on-laravel-10:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
php:
- 8.1
- 8.2
- 8.3
laravel:
- "10.x"
experimental:
- false

name: PHP${{ matrix.php }}-${{ matrix.os }} with Laravel ${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, pdo_mysql, bcmath, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "highest"
composer-options: "--prefer-dist --prefer-stable --no-cache --with=laravel/framework:${{ matrix.laravel }}"

- name: Installed dependencies
run: composer show -D

- name: Audit dependencies
run: composer audit
14 changes: 5 additions & 9 deletions .github/workflows/coveralls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@ on:

jobs:
tests:
runs-on: ${{ matrix.os }}
runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
php:
- 8.2
- 8.3
laravel:
- "10.x"
dependencies:
- "highest"
- "11.x"
experimental:
- false

name: Laravel ${{ matrix.laravel }} on PHP${{ matrix.php }}-${{ matrix.os }} (${{ matrix.dependencies }})
name: Laravel:${{ matrix.laravel }} / PHP:${{ matrix.php }} Code Coverage

steps:
- name: Checkout code
Expand All @@ -41,7 +37,7 @@ jobs:
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
dependency-versions: "highest"
composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}"

- name: Execute tests
Expand Down
96 changes: 7 additions & 89 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,7 @@ on:
- cron: '0 0 * * 3'

jobs:
tests-on-php83:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
php:
- 8.3
laravel:
- "11.x"
- "10.x"
dependencies:
- "highest"
- "lowest"
experimental:
- false

name: Laravel:${{ matrix.laravel }} on PHP:${{ matrix.php }}-${{ matrix.os }} (${{ matrix.dependencies }})

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, pdo_mysql, bcmath, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit

tests-on-php82:
tests:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
Expand All @@ -61,60 +17,22 @@ jobs:
- "ubuntu-latest"
- "windows-latest"
php:
- 8.1
- 8.2
- 8.3
laravel:
- "10.x"
- "11.x"
dependencies:
- "highest"
- "lowest"
experimental:
- false

name: Laravel:${{ matrix.laravel }} on PHP:${{ matrix.php }}-${{ matrix.os }} (${{ matrix.dependencies }})

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, pdo_mysql, bcmath, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit

tests-on-php81:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
php:
- 8.1
laravel:
- "10.x"
dependencies:
- "highest"
- "lowest"
experimental:
- false
exclude:
- php: 8.1
laravel: "11.x"

name: Laravel:${{ matrix.laravel }} on PHP:${{ matrix.php }}-${{ matrix.os }} (${{ matrix.dependencies }})
name: Laravel:${{ matrix.laravel }} / PHP:${{ matrix.php }} / OS:${{ matrix.os }} ${{ matrix.dependencies == 'highest' && '⬆️' || '⬇️' }}

steps:
- name: Checkout code
Expand Down

0 comments on commit 98cc21a

Please sign in to comment.