Skip to content

Commit

Permalink
Update GitHub Actions (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
matriphe authored Oct 7, 2023
1 parent 96aa2d2 commit ad43b5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 39 deletions.
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

0 comments on commit ad43b5b

Please sign in to comment.