Skip to content

Fix update devices call #2

Fix update devices call

Fix update devices call #2

Workflow file for this run

name: "CI"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
cs:
name: "Code style"
runs-on: ubuntu-latest
steps:
- name: "Git: checkout"
uses: actions/checkout@v4
- name: "PHP: setup 8.3"
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
tools: php-cs-fixer
- name: "Composer: validate"
run: composer validate --strict
- name: "Composer: install"
run: composer install --prefer-dist --no-interaction --no-progress
- name: "Php-CS-Fixer: version"
run: php-cs-fixer -V
- name: "Php-CS-Fixer: check"
run: php-cs-fixer fix --diff --dry-run
sa:
name: "Static Analysis"
runs-on: ubuntu-latest
steps:
- name: "Git: checkout"
uses: actions/checkout@v4
- name: "PHP: setup 8.4"
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: pcov
tools: phpstan
- name: "Composer: install"
run: composer install --prefer-dist --no-interaction --no-progress
- name: "PHPStan: version"
run: phpstan --version
- name: "PHPStan: analyze"
run: phpstan analyze --memory-limit=-1
unit-tests:
name: "Unit Tests (PHP ${{ matrix.php-version }})"
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.3', '8.4']
fail-fast: false
steps:
- name: "Git: checkout"
uses: actions/checkout@v4
- name: "PHP: setup ${{ matrix.php-version }}"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
tools: phpunit
- name: "Composer: install"
run: composer install --prefer-dist --no-interaction --no-progress
- name: "PHPUnit: version"
run: phpunit --version
- name: "PHPUnit: unit tests"
run: phpunit --testsuite=unit