Skip to content

Commit

Permalink
IBX-828: Moved jobs to Github Actions (#100)
Browse files Browse the repository at this point in the history
* IBX-828: Moved jobs to Github Actions

* fixed code style
  • Loading branch information
piotrbisaga committed Oct 21, 2021
1 parent f886c43 commit e389608
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 49 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
branches:
- master
- '[0-9]+.[0-9]+'
pull_request: ~

jobs:
tests:
name: Tests
runs-on: "ubuntu-20.04"
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
composer_options: [ "" ]

steps:
- uses: actions/checkout@v2

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: pdo_sqlite, gd
tools: cs2pr

- uses: "ramsey/composer-install@v1"
with:
dependency-versions: "highest"
composer-options: "${{ matrix.composer_options }}"

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Run code style check
run: composer run-script check-cs -- --format=checkstyle | cs2pr

- name: Run test suite
run: composer run-script --timeout=600 test
47 changes: 0 additions & 47 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"ezsystems/ezplatform-code-style": "^0.1.0"
},
"scripts": {
"fix-cs": "@php ./vendor/bin/php-cs-fixer fix -v --show-progress=estimating"
"fix-cs": "php-cs-fixer fix -v --show-progress=estimating",
"check-cs": "@fix-cs --dry-run",
"test": "phpunit -c phpunit.xml"
},
"extra": {
"branch-alias": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/UserSetting/Setting/Value/DateTimeFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

final class DateTimeFormat
{
/** @var string |null */
/** @var string|null */
private $dateFormat;

/** @var string|null */
Expand Down

0 comments on commit e389608

Please sign in to comment.