Skip to content

Rename Test l11 to just run test #9

Rename Test l11 to just run test

Rename Test l11 to just run test #9

Workflow file for this run

name: Run Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.3]
laravel: [11.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
php: 8.2
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, pdo, sqlite, pdo_sqlite, curl, libxml, mbstring, zip, pcntl, bcmath, soap, intl, exif, fileinfo
coverage: xdebug
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install Matrix dependencies
if: ${{ matrix.testbench }}
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D
- name: 'Create env file'
run: |
touch .env
echo CUTTLY_API_KEY=${{ secrets.CUTTLY_API_KEY }} >> .env
echo CUTTLY_TEAM_API_KEY=${{ secrets.CUTTLY_TEAM_API_KEY }} >> .env
cat .env
- name: Execute tests
run: ./vendor/bin/pest --ci --coverage --display-errors --testdox
env:
XDEBUG_MODE: coverage
CUTTLY_API_KEY: ${{ secrets.CUTTLY_API_KEY }}
CUTTLY_TEAM_API_KEY: ${{ secrets.CUTTLY_TEAM_API_KEY }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/logs/clover.xml
call-run-tests-l10:
uses: ./.github/workflows/run-tests-l10.yml
secrets:
CUTTLY_API_KEY: ${{ secrets.CUTTLY_API_KEY }}
CUTTLY_TEAM_API_KEY: ${{ secrets.CUTTLY_TEAM_API_KEY }}
call-run-tests-l9:
uses: ./.github/workflows/run-tests-l9.yml
secrets:
CUTTLY_API_KEY: ${{ secrets.CUTTLY_API_KEY }}
CUTTLY_TEAM_API_KEY: ${{ secrets.CUTTLY_TEAM_API_KEY }}