Skip to content

Commit

Permalink
chore: add support for php 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackfaded committed Dec 12, 2024
1 parent f92749d commit 8ffb016
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 52 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ on:
jobs:
lint_test:
runs-on: ubuntu-20.04
strategy:
matrix:
php: ['8.2', '8.3', '8.4']
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: ${{ matrix.php }}
extensions: composer, xdebug

- name: Get composer cache directory
Expand All @@ -33,7 +36,7 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-composer-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}

- name: Install dependencies
run: composer install --no-progress --no-interaction --prefer-dist
Expand All @@ -51,9 +54,6 @@ jobs:
run: composer run-script lint

- name: Test with coverage
run: composer run-script coverage
run: composer run-script test


- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/sonar_scanner.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Run SonarCloud Scan

on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
workflow_call:
workflow_dispatch:

Expand All @@ -12,6 +19,29 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: composer, xdebug

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

- name: Install dependencies
run: composer install --no-progress --no-interaction --prefer-dist

- name: Test with coverage
run: composer run-script coverage

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/test_backwards.yml

This file was deleted.

0 comments on commit 8ffb016

Please sign in to comment.