Skip to content

Extend and streamline parameters #234

Extend and streamline parameters

Extend and streamline parameters #234

Workflow file for this run

name: CI
on: push
jobs:
test-8-2:
name: "Tests on PHP 8.2"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup env
run: cp .github/workflows/.env .env
- name: Cache PHP 8.2 dependencies
id: cache-php-8-2-dependencies
uses: actions/cache@v3
env:
cache-name: cache-php-8-2-dependencies
with:
path: |
~/.cache
vendor
key: ${{ runner.os }}-php-8-2-cache-${{ hashFiles('composer.lock') }}
restore-keys: |
${{ runner.os }}-php-8-2-cache-${{ hashFiles('composer.lock') }}
- name: Install
if: steps.cache-php-8-2-dependencies.outputs.cache-hit != 'true'
run: make install-8.2
- name: Run PHP tests
run: make php-8.2-tests-ci
test-8-3:
name: "Tests on PHP 8.3"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup env
run: cp .github/workflows/.env .env
- name: Cache PHP 8.3 dependencies
id: cache-php-8-3-dependencies
uses: actions/cache@v3
env:
cache-name: cache-php-8-3-dependencies
with:
path: |
~/.cache
vendor
key: ${{ runner.os }}-php-8-3-cache-${{ hashFiles('composer.lock') }}
restore-keys: |
${{ runner.os }}-php-8-3-cache-${{ hashFiles('composer.lock') }}
- name: Install
if: steps.cache-php-8-3-dependencies.outputs.cache-hit != 'true'
run: make install-8.3
- name: Run PHP tests
run: make php-8.3-tests-ci
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true
code-validation:
name: "Code validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup env
run: cp .github/workflows/.env .env
- name: Restore cache for PHP 8.3 dependencies
id: cache-php-8-3-dependencies
uses: actions/cache/restore@v3
with:
path: |
~/.cache
vendor
key: ${{ runner.os }}-php-8-3-cache-${{ hashFiles('composer.lock') }}
- name: Install
if: steps.cache-php-8-3-dependencies.outputs.cache-hit != 'true'
run: make install-8.3
- name: Run code validation
run: make php-code-validation