Merge pull request #6 from mahdimsr/dev

dev: update run-tests.yml for running test action
This commit is contained in:
mahdi mansouri 2025-09-29 04:17:32 +03:30 committed by GitHub
commit 8b416c09e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 11 deletions

View File

@ -1,16 +1,10 @@
name: run-tests name: run-tests
on: on:
push:
branches: [main, dev]
pull_request: pull_request:
branches: [main] branches: [main]
push:
branches: [dev, main]
paths:
- '**.php'
- '.github/workflows/run-tests.yml'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@ -18,19 +12,20 @@ concurrency:
jobs: jobs:
test: test:
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
timeout-minutes: 5 timeout-minutes: 5
strategy: strategy:
fail-fast: true fail-fast: true
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
php: [8.4, 8.3] php: [8.4]
laravel: [12.*, 11.*] laravel: [12.*, 11.*]
stability: [prefer-stable] stability: [prefer-stable]
include: include:
- laravel: 12.* - laravel: 12.*
testbench: 10.*
- laravel: 11.* - laravel: 11.*
- laravel: 10.* testbench: 9.*
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}