Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BadJacky committed Apr 8, 2024
1 parent 611435b commit 38fa917
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
name: run-tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ${{ matrix.os }}
Expand All @@ -16,31 +8,31 @@ jobs:
php: [ 8.3 ]
laravel: [ 11.* ]
stability: [ prefer-stable ]
include:
- laravel: 11.*
testbench: ^9.0.3

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

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

- name: Setup PHP
- name: Setup PHP and install dependencies
if: matrix.os == 'ubuntu-latest'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: >
dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo${{ matrix.os != 'windows-latest' && ',pcntl,imagick' || '' }}
dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo, pcntl, imagick
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
composer install --no-interaction
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Setup PHP and install dependencies
if: matrix.os == 'windows-latest'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: >
dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo
coverage: none
run: |
composer install --no-interaction
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest

0 comments on commit 38fa917

Please sign in to comment.