Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdalmolin committed Oct 22, 2024
1 parent 139b0b7 commit 22c0d15
Showing 1 changed file with 39 additions and 40 deletions.
79 changes: 39 additions & 40 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,42 @@ on:
pull_request:

jobs:
pest:
runs-on: ubuntu-24.04
timeout-minutes: 5

strategy:
fail-fast: true
matrix:
php: [ 8.2, 8.3 ]
laravel: [ 11.* ]
include:
- laravel: 11.*

name: Paragon Tests - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-pw-v2-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
coverage: none
tools: composer:v2

- name: Install dependencies
run: |
composer --version
composer update --prefer-dist --no-interaction --no-suggest --dev
composer dump
- name: Execute tests
run: vendor/bin/pest
pest:
runs-on: ubuntu-24.04
timeout-minutes: 5

strategy:
fail-fast: true
matrix:
php: [ 8.2, 8.3 ]
laravel: [ 11.* ]
include:
- laravel: 11.*

name: Paragon Tests - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-pw-v2-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
coverage: none
tools: composer:v2

- name: Install dependencies
run: |
composer install --no-interaction --no-suggest --dev
composer dump
- name: Execute tests
run: vendor/bin/pest

0 comments on commit 22c0d15

Please sign in to comment.