orkhanahmadov/laravel-accept-language-middleware

View on GitHub
.github/workflows/test.yml

Summary

Maintainability
Test Coverage
name: Unit Test

on:
  - push

jobs:
  run:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        php-version: ['8.0', '8.1', '8.2']
        laravel-version: [10.0, '11.0', ^8, ^9]
        exclude:
          - laravel-version: '11.0'
            php-version: '8.0'
          - laravel-version: '11.0'
            php-version: '8.1'

    steps:
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-version }}

      - uses: actions/checkout@v2

      - name: Install laravel
        run: composer require illuminate/contracts:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress

      - name: Run unit tests
        run: vendor/bin/phpunit