Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bukashk0zzz committed Sep 5, 2024
1 parent 9d91f54 commit 63d5b56
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 39 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Tests

on:
pull_request:
push:
branches:
- master

jobs:
tests:
name: PHPUnit PHP ${{ matrix.php }}
runs-on: ubuntu-20.04
strategy:
matrix:
php:
- '5.6'
- '7.1'
- '8.1'
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pcov

- name: Configure CS plugin
run: composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer "true"

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ matrix.php }}-composer-

- name: Update project dependencies
if: matrix.dependency == ''
run: composer update --no-progress --ansi --prefer-stable

- name: Validate composer
run: composer validate --strict --no-check-lock

- name: Run CS
run: ./vendor/bin/phpcs

- name: Run CS Fixer
run: ./vendor/bin/php-cs-fixer fix --config=./.php_cs -v --dry-run

- name: Run tests
run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.xml
11 changes: 0 additions & 11 deletions .scrutinizer.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# YML (Yandex Market Language) file generator

[![Build Status](https://img.shields.io/scrutinizer/build/g/Bukashk0zzz/YmlGenerator.svg?style=flat-square)](https://travis-ci.org/Bukashk0zzz/YmlGenerator)
[![Code Coverage](https://img.shields.io/codecov/c/github/Bukashk0zzz/YmlGenerator.svg?style=flat-square)](https://codecov.io/github/Bukashk0zzz/YmlGenerator)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/Bukashk0zzz/YmlGenerator.svg?style=flat-square)](https://scrutinizer-ci.com/g/Bukashk0zzz/YmlGenerator/?branch=master)
[![License](https://img.shields.io/packagist/l/Bukashk0zzz/yml-generator.svg?style=flat-square)](https://packagist.org/packages/Bukashk0zzz/yml-generator)
[![Latest Stable Version](https://img.shields.io/packagist/v/Bukashk0zzz/yml-generator.svg?style=flat-square)](https://packagist.org/packages/Bukashk0zzz/yml-generator)
[![Total Downloads](https://img.shields.io/packagist/dt/Bukashk0zzz/yml-generator.svg?style=flat-square)](https://packagist.org/packages/Bukashk0zzz/yml-generator)
Expand Down

0 comments on commit 63d5b56

Please sign in to comment.