Skip to content

Commit

Permalink
Upgrade everything
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowhand committed Oct 16, 2024
1 parent f71b733 commit 8995d52
Showing 1 changed file with 27 additions and 40 deletions.
67 changes: 27 additions & 40 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,6 @@ on:
- master

jobs:
coding-standards:
name: Coding Standards

runs-on: ubuntu-latest

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

- name: Install PHP
uses: shivammathur/setup-php@2.9.0
with:
php-version: '8.3'
coverage: none
extensions: mbstring
tools: composer-normalize, php-cs-fixer

- name: Validate composer.json
run: >-
composer validate --strict
- name: Normalize composer.json
run: >-
composer-normalize --dry-run
- name: Check code style
run: >-
php-cs-fixer check

static-code-analysis:
name: Static Code Analysis
Expand All @@ -48,7 +20,7 @@ jobs:
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@2.9.0
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
Expand All @@ -66,6 +38,17 @@ jobs:
run: >-
composer run static-analysis
php-cs-fixer:
name: PHP Code Style Fixer

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Check code style
uses: docker://oskarstark/php-cs-fixer-ga

roave-backwards-compatibility-check:
name: Roave Backwards Compatibility Check

Expand Down Expand Up @@ -93,23 +76,26 @@ jobs:
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"

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

- name: Install PHP
uses: shivammathur/setup-php@2.9.0
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: none
extensions: mbstring
php-version: "${{ matrix.php-version }}"
tools: phpunit:8

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

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

windows-tests:
name: Windows tests
Expand All @@ -119,21 +105,22 @@ jobs:
strategy:
matrix:
php-version:
- "7.4"
- "8.3"

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

- name: Install PHP
uses: shivammathur/setup-php@2.9.0
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: none
extensions: mbstring
php-version: "${{ matrix.php-version }}"
tools: phpunit:8

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

- name: Run unit tests
run: "vendor/bin/phpunit tests/AssertTest.php"
run: phpunit

0 comments on commit 8995d52

Please # to comment.