Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Re-enable other PHP tests
  • Loading branch information
driesvints committed Sep 12, 2022
commit d9bdae32fff163b28e4ecdf83e4e75ab8c8942b4
130 changes: 64 additions & 66 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ jobs:
strategy:
fail-fast: true
matrix:
# php: ['8.0', 8.1]
# stability: [prefer-lowest, prefer-stable]
php: [8.2]
stability: ["prefer-stable --ignore-platform-reqs"]
# include:
# - php: 8.2
# stability: prefer-stable --ignore-platform-reqs
php: ['8.0', 8.1]
stability: [prefer-lowest, prefer-stable]
include:
- php: 8.2
stability: prefer-stable --ignore-platform-reqs

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

Expand Down Expand Up @@ -106,62 +104,62 @@ jobs:
vendor/orchestra/testbench-core/laravel/storage/logs
!vendor/**/.gitignore

# windows_tests:
# runs-on: windows-2019

# strategy:
# fail-fast: true
# matrix:
# # php: ['8.0', 8.1]
# stability: [prefer-lowest, prefer-stable]
# include:
# - php: 8.2
# stability: prefer-stable

# name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows

# steps:
# - name: Set git to use LF
# run: |
# git config --global core.autocrlf false
# git config --global core.eol lf

# - name: Checkout code
# uses: actions/checkout@v2

# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, pdo_mysql, fileinfo, ftp, redis, memcached, gmp
# tools: composer:v2
# coverage: none

# - name: Set Minimum PHP 8.0 Versions
# uses: nick-invision/retry@v1
# with:
# timeout_minutes: 5
# max_attempts: 5
# command: composer require guzzlehttp/guzzle:^7.2 --no-interaction --no-update
# if: matrix.php >= 8

# - name: Install dependencies
# uses: nick-invision/retry@v1
# with:
# timeout_minutes: 5
# max_attempts: 5
# command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

# - name: Execute tests
# run: vendor/bin/phpunit --verbose
# env:
# AWS_ACCESS_KEY_ID: random_key
# AWS_SECRET_ACCESS_KEY: random_secret

# - name: Store artifacts
# uses: actions/upload-artifact@v2
# with:
# name: logs
# path: |
# vendor/orchestra/testbench-core/laravel/storage/logs
# !vendor/**/.gitignore
windows_tests:
runs-on: windows-2019

strategy:
fail-fast: true
matrix:
# php: ['8.0', 8.1]
stability: [prefer-lowest, prefer-stable]
include:
- php: 8.2
stability: prefer-stable

name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, pdo_mysql, fileinfo, ftp, redis, memcached, gmp
tools: composer:v2
coverage: none

- name: Set Minimum PHP 8.0 Versions
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer require guzzlehttp/guzzle:^7.2 --no-interaction --no-update
if: matrix.php >= 8

- name: Install dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit --verbose
env:
AWS_ACCESS_KEY_ID: random_key
AWS_SECRET_ACCESS_KEY: random_secret

- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: logs
path: |
vendor/orchestra/testbench-core/laravel/storage/logs
!vendor/**/.gitignore