Skip to content
Merged
Changes from all commits
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
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,19 @@ jobs:
tools: composer:v2, pecl
coverage: xdebug

- name: ♻️ Load cached dependencies
- name: 🛠️ Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: ♻️ Restore cached dependencies
id: cached-composer-dependencies
uses: actions/cache@v3
with:
path: vendor
key: vendor-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
key: vendor-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}-${{ matrix.php }}

- name: ⚙️ Install dependencies
- name: 📥 Install dependencies
if: steps.cached-composer-dependencies.outputs.cache-hit != 'true'
run: composer install

Expand All @@ -53,14 +58,14 @@ jobs:
env:
PHP_CS_FIXER_IGNORE_ENV: true

- name: 🧪 Execute phpunit tests
- name: 🧪 Execute phpunit and pest tests
env:
XDEBUG_MODE: coverage
DB_CONNECTION: sqlite
DB_DATABASE: ":memory:"
run: vendor/bin/pest --coverage-clover=coverage.xml

- name: 📝 Run static analysis using phpstan
- name: 🔍 Run static analysis using phpstan
run: composer stan:ci

- name: 📤 Upload coverage report to Codecov
Expand Down