Skip to content

Commit

Permalink
Cleanup test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
olssonm committed Aug 12, 2024
1 parent 0137ca9 commit 39ddabf
Showing 1 changed file with 66 additions and 63 deletions.
129 changes: 66 additions & 63 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,69 @@ name: Run tests
on: [push, pull_request]

jobs:
coding-standards:
name: "Coding Standards"

runs-on: "ubuntu-latest"

strategy:
matrix:
php:
- "8.3"

steps:
- name: "Checkout"
uses: "actions/checkout@v4.1.7"

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

- name: Update composer
run: composer self-update --2

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"

- name: "Run normalize"
run: "composer normalize --dry-run"

tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
php: [8.2,8.3]
laravel: [11.*]
dependency-version: [prefer-stable]
include:
- laravel: 10.*
php: 8.1
- os: ubuntu-20.04
laravel: 10.*


name: ${{ matrix.os }}, PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}

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

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

- name: Update composer
run: composer self-update --2

- name: Install dependencies
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-progress

- name: Execute tests
run: composer test
coding-standards:
name: "Coding Standards"

runs-on: "ubuntu-latest"

strategy:
matrix:
php:
- "8.3"

steps:
- name: "Checkout"
uses: "actions/checkout@v4.1.7"

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

- name: Update composer
run: composer self-update --2

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"

- name: "Run normalize"
run: "composer normalize --dry-run"

tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os:
- ubuntu-latest
laravel:
- 11.*
php:
- 8.2
- 8.3
dependency-version: [prefer-stable]
include:
- laravel: 10.*
php: 8.1
- os: ubuntu-20.04
laravel: 10.*

name: ${{ matrix.os }}, PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}

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

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

- name: Update composer
run: composer self-update --2

- name: Install dependencies
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-progress

- name: Execute tests
run: composer test

0 comments on commit 39ddabf

Please sign in to comment.