Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 16, 2022
1 parent b3f649b commit d80ed86
Showing 1 changed file with 64 additions and 64 deletions.
128 changes: 64 additions & 64 deletions .github/workflows/tests.yml
Expand Up @@ -109,67 +109,67 @@ 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, 8.2]
# stability: [prefer-lowest, 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@v3

# - 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-fields/retry@v2
# with:
# timeout_minutes: 5
# max_attempts: 5
# command: composer require guzzlehttp/guzzle:~7.2 --no-interaction --no-update
# if: matrix.php >= 8

# - name: Set Minimum PHP 8.2 Versions
# uses: nick-fields/retry@v2
# with:
# timeout_minutes: 5
# max_attempts: 5
# command: composer require guzzlehttp/guzzle:~7.5 guzzlehttp/psr7:~2.4 predis/predis:^2.0.2 --no-interaction --no-update
# if: matrix.php >= 8.2

# - name: Install dependencies
# uses: nick-fields/retry@v2
# 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, 8.2]
stability: [prefer-lowest, 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@v3

- 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-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer require guzzlehttp/guzzle:~7.2 --no-interaction --no-update
if: matrix.php >= 8

- name: Set Minimum PHP 8.2 Versions
uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer require guzzlehttp/guzzle:~7.5 guzzlehttp/psr7:~2.4 predis/predis:^2.0.2 --no-interaction --no-update
if: matrix.php >= 8.2

- name: Install dependencies
uses: nick-fields/retry@v2
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

0 comments on commit d80ed86

Please sign in to comment.