Skip to content

Commit

Permalink
Actions adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Jun 1, 2024
1 parent 75d1378 commit 1570843
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 37 deletions.
70 changes: 34 additions & 36 deletions .github/workflows/lint-and-analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,38 @@ permissions:
on: [push]

jobs:
lint-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache module
uses: actions/cache@v4
with:
path: ~/.composer/cache/
key: composer-cache
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
tools: composer:v2
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Lint files
run: composer run phpcs
lint-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache module
uses: actions/cache@v4
with:
path: ~/.composer/cache/
key: composer-cache
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Lint files
run: composer run phpcs

analyse-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache module
uses: actions/cache@v4
with:
path: ~/.composer/cache/
key: composer-cache
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
tools: composer:v2
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Analyse files
run: composer run phpstan
analyse-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache module
uses: actions/cache@v4
with:
path: ~/.composer/cache/
key: composer-cache
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Analyse files
run: composer run phpstan
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
test-php:
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
services:
mysql:
image: mysql:5.7
Expand All @@ -21,9 +22,13 @@ jobs:
- "3306:3306"
options: --name mysql-server --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
fail-fast: false
matrix:
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
os: [ubuntu-latest]
experimental: [false]
include:
- { php-version: 'nightly', os: ubuntu-latest, experimental: true }
steps:
- uses: actions/checkout@v4
- name: Use php ${{ matrix.php-version }}
Expand Down

0 comments on commit 1570843

Please sign in to comment.