Skip to content

Commit

Permalink
Fixes Github Actions issues and Add support for PHP 8.0 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
richan-fongdasen authored Jan 19, 2021
1 parent d436120 commit aa05d09
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 5 deletions.
64 changes: 60 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Install composer dependencies
run: composer install --prefer-dist
- name: Run phpstan analysis
Expand All @@ -47,6 +53,12 @@ jobs:
php: [ 7.2, 7.3, 7.4 ]
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Update laravel version
run: composer require "laravel/framework:5.7.*" "orchestra/testbench:3.7.*" --no-update
- name: Remove some dev dependencies
Expand All @@ -63,6 +75,12 @@ jobs:
php: [ 7.2, 7.3, 7.4 ]
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Update laravel version
run: composer require "laravel/framework:5.8.*" "orchestra/testbench:3.8.*" --no-update
- name: Remove some dev dependencies
Expand All @@ -71,14 +89,20 @@ jobs:
run: composer install --prefer-dist
- name: Run the test suite
run: phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
laravel60:
laravel6:
needs: [ analysis ]
runs-on: ubuntu-latest
strategy:
matrix:
php: [ 7.2, 7.3, 7.4 ]
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Update laravel version
run: composer require "laravel/framework:^6.0" "orchestra/testbench:^4.0" --no-update
- name: Remove some dev dependencies
Expand All @@ -87,14 +111,20 @@ jobs:
run: composer install --prefer-dist
- name: Run the test suite
run: phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
laravel70:
laravel7:
needs: [ analysis ]
runs-on: ubuntu-latest
strategy:
matrix:
php: [ 7.2, 7.3, 7.4 ]
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Update laravel version
run: composer require "laravel/framework:^7.0" "orchestra/testbench:^5.0" --no-update
- name: Remove some dev dependencies
Expand All @@ -103,12 +133,32 @@ jobs:
run: composer install --prefer-dist
- name: Run the test suite
run: phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
laravel80:
laravel8:
needs: [analysis]
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.4]
php: [8.0]
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Remove some dev dependencies
run: composer remove "ekino/phpstan-banned-code" "nunomaduro/larastan" "phpmd/phpmd" "phpstan/phpstan-deprecation-rules" "sebastian/phpcpd" --dev --no-update
- name: Install composer dependencies
run: composer install --prefer-dist
- name: Run the test suite
run: phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
laravel8-cov:
needs: [ analysis ]
runs-on: ubuntu-latest
strategy:
matrix:
php: [ 7.4 ]
steps:
- uses: actions/checkout@v1
- name: Cache composer dependencies
Expand All @@ -122,6 +172,12 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Install composer dependencies
run: composer install --prefer-dist
- name: Run the Coverage test suite
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"source": "https://github.com/richan-fongdasen/laravel-gcr-worker"
},
"require": {
"php": ">=7.2",
"php": "^7.2|^8.0",
"illuminate/queue": "5.7.* || 5.8.* || ^6.0 || ^7.0 || ^8.0",
"illuminate/support": "5.7.* || 5.8.* || ^6.0 || ^7.0 || ^8.0",
"kainxspirits/laravel-pubsub-queue": "^0.5"
Expand Down

0 comments on commit aa05d09

Please sign in to comment.