Skip to content

Commit

Permalink
Merge pull request #116 from wandersonwhcr/feature/php-8-hello
Browse files Browse the repository at this point in the history
Say hello to PHP 8.1
  • Loading branch information
wandersonwhcr authored Nov 30, 2021
2 parents f91cd5f + 53e15ac commit 54b4327
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ jobs:
matrix:
php_version:
- "8.0"
- "8.1.0RC6"
- "8.1"
include:
- php_version: "8.1.0RC6"
experimental: true
composer_platform_php: "8.0"
- php_version: "8.0"
artifact: true
# - php_version: "8.1.0RC6"
# experimental: true
# composer_platform_php: "8.0"
steps:
- name: Checkout
uses: actions/download-artifact@v2
Expand All @@ -56,7 +58,7 @@ jobs:
continue-on-error: ${{ matrix.experimental == true }}

- name: PHP Experimental
if: ${{ matrix.experimental == true }}
if: matrix.experimental == true
run: |
docker-compose run romans composer config platform.php ${{ matrix.composer_platform_php }}
docker-compose run romans composer update --lock --no-install
Expand All @@ -83,11 +85,11 @@ jobs:

- name: Zip
run: zip -r repository.zip .
if: matrix.php_version == '8.0'
if: matrix.artifact == true

- name: Repository
uses: actions/upload-artifact@v2
if: matrix.php_version == '8.0'
if: matrix.artifact == true
with:
name: repository
path: repository.zip
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
matrix:
php_version:
- "8.0"
- "8.1.0RC6"
include:
- php_version: "8.1.0RC6"
experimental: true
composer_platform_php: "8.0"
- "8.1"
# include:
# - php_version: "8.1.0RC6"
# experimental: true
# composer_platform_php: "8.0"
steps:
- name: Checkout
uses: actions/download-artifact@v2
Expand All @@ -56,7 +56,7 @@ jobs:
continue-on-error: ${{ matrix.experimental == true }}

- name: PHP Experimental
if: ${{ matrix.experimental == true }}
if: matrix.experimental == true
run: |
docker-compose run romans composer config platform.php ${{ matrix.composer_platform_php }}
docker-compose run romans composer update --lock --no-install
Expand Down

0 comments on commit 54b4327

Please sign in to comment.