Skip to content

Commit

Permalink
GitLab.Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Михаил Красильников committed Nov 21, 2024
1 parent 1aff734 commit aeb3cfd
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Проверка

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
composer:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Проверка composer.json
run: composer validate --strict

- name: Установка зависимостей
run: composer install --prefer-dist --no-progress

phpunit:
name: Тесты PHPUnit
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
dependency-versions:
- 'lowest'
- 'highest'

steps:
- uses: actions/checkout@v3

- name: Настройка PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none

- name: Установка зависимостей
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependency-versions }}

- name: PHPUnit
run: vendor/bin/phpunit

0 comments on commit aeb3cfd

Please sign in to comment.