Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions #37

Merged
merged 9 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.1' ]
php-versions: [ '8.1', '8.2' ]
laravel-versions: [ '^10.0' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
Expand Down
47 changes: 9 additions & 38 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test PR
name: Test Pull Request

on:
pull_request:
Expand All @@ -15,8 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.1' ]
operating-system: [ ubuntu-20.04, ubuntu-22.04 ]
php-versions: [ '8.1', '8.2' ]
laravel-versions: [ '^10.0' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
Expand All @@ -41,8 +41,8 @@ jobs:
strategy:
fail-fast: false
matrix:
operating-system: [ macos-11, macos-12 ]
php-versions: [ '8.1' ]
operating-system: [ macos-12, macos-13 ]
php-versions: [ '8.1', '8.2' ] # default is PHP 8.2 from https://github.com/shivammathur/setup-php#github-hosted-runners
laravel-versions: [ '^10.0' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
Expand All @@ -67,9 +67,10 @@ jobs:
strategy:
fail-fast: false
matrix:
operating-system: [ windows-2019 ]
php-versions: [ '8.1' ]
operating-system: [ windows-2019, windows-2022 ]
php-versions: [ '8.1', '8.2' ]
laravel-versions: [ '^10.0' ]
php-extension: [ 'pdo_sqlite,sqlite3,fileinfo' , 'pdo_sqlite,sqlite3,fileinfo,com_dotnet']
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
Expand All @@ -79,37 +80,7 @@ jobs:
phpunit_args: --group unit
laravel_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
package_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
php_extensions: pdo_sqlite,sqlite3,fileinfo
shell_name: pwsh

- name: Run Windows Tests
shell: pwsh
run: vendor/bin/phpunit --group windows

- name: Run Larinfo Command
shell: pwsh
run: php vendor/bin/testbench larinfo


windows-with-com-dotnet-laravel-10:
name: Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }} with com_dotnet
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ windows-2019 ]
php-versions: [ '8.1' ]
laravel-versions: [ '^10.0' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
operating_system: ${{ matrix.operating-system }}
php_version: ${{ matrix.php-versions }}
laravel_version: ${{ matrix.laravel-versions }}
phpunit_args: --group unit
laravel_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
package_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
php_extensions: pdo_sqlite,sqlite3,fileinfo,com_dotnet
php_extensions: ${{ matrix.php-extension }}
shell_name: pwsh

- name: Run Windows Tests
Expand Down