Skip to content

Commit

Permalink
IBX-827 Moving Jobs on 1.0 ez-support-tools (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
kacper-wieczorek-ibexa committed Oct 11, 2021
1 parent f309573 commit edd1dd1
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 38 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

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

env:
COMPOSER_ROOT_VERSION: 1.0.x-dev
jobs:
tests:
name: Tests
runs-on: "ubuntu-20.04"
timeout-minutes: 10
continue-on-error: ${{ matrix.experimental }}

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

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: "--prefer-dist --no-progress --no-suggest ${{ matrix.composer_options }}"

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

- name: Run test suite
run: composer run-script --timeout=600 test

- name: Run code style check
run: composer run-script check-cs -- --format=checkstyle | cs2pr
37 changes: 0 additions & 37 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 @@ -32,6 +32,8 @@
}
},
"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"
}
}

0 comments on commit edd1dd1

Please sign in to comment.