Skip to content

Commit

Permalink
move CI to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpts committed May 28, 2022
1 parent 6e979fd commit ad24bad
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 39 deletions.
6 changes: 0 additions & 6 deletions .codeclimate.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: phpunit

on:
pull_request: {}
release: {}
push:
branches: [ master ]

jobs:
tests:
name: unit tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
with:
version: 2

- name: phpunit tests
uses: php-actions/phpunit@v3
with:
configuration: ./test/phpunit.xml
php_extensions: pcov

- name: coverage monitor
uses: slavcodev/coverage-monitor-action@1.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
coverage_path: test/clover.xml
comment_footer: false

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: test/clover.xml
name: github-ci
verbose: true
17 changes: 0 additions & 17 deletions .scrutinizer.yml

This file was deleted.

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

This file was deleted.

7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# php-hydrator

[![Build Status](https://travis-ci.org/alexpts/php-hydrator.svg?branch=master)](https://travis-ci.org/alexpts/php-hydrator)
[![Code Coverage](https://scrutinizer-ci.com/g/alexpts/php-hydrator/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/alexpts/php-hydrator/?branch=master)
[![Code Climate](https://codeclimate.com/github/alexpts/php-hydrator/badges/gpa.svg)](https://codeclimate.com/github/alexpts/php-hydrator)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/alexpts/php-hydrator/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/alexpts/php-hydrator/?branch=master)

[![phpunit](https://github.com/alexpts/php-hydrator/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/alexpts/php-hydrator/actions/workflows/phpunit.yml)
[![codecov](https://codecov.io/gh/alexpts/php-hydrator/branch/master/graph/badge.svg?token=14L6IJA5UE)](https://codecov.io/gh/alexpts/php-hydrator)

Одни и те же данные нужно представить в разном виде. В коде удобно работать с высокоуровневыми моделями. Но для сохранения этих данных в базу данных, как правило, данные требуется перевести в более простой вид, обычно в ассоциативный массив. Для передачи данных между приложениями используют простые DTO сущности.

Expand Down

0 comments on commit ad24bad

Please sign in to comment.