Skip to content

Commit

Permalink
[CI] Moved to Github Actions (#56)
Browse files Browse the repository at this point in the history
* [CI] Moved to Github Actions

* adjuested composer dependencies and added jobs for newer versions of PHP

Co-authored-by: konradoboza <[email protected]>
  • Loading branch information
mnocon and konradoboza authored Jan 12, 2022
1 parent acba9f3 commit 5f42a2c
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 75 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/browser-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Browser tests

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

jobs:
content-forms:
name: "Content Forms browser tests"
uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main
with:
project-edition: 'oss'
project-version: '^3.3.x-dev'
test-suite: '--mode=behat --profile=content-forms --tags=~@broken --non-strict'
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
69 changes: 69 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI

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

jobs:
cs-fix:
name: Run code style check
runs-on: "ubuntu-20.04"
strategy:
matrix:
php:
- '8.0'
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"

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

tests:
name: Unit tests
runs-on: "ubuntu-20.04"
timeout-minutes: 15

strategy:
fail-fast: false
matrix:
php:
- '7.3'
- '7.4'
- '8.0'
- '8.1'

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"

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

- name: Run unit test suite
run: composer test
68 changes: 0 additions & 68 deletions .travis.yml

This file was deleted.

6 changes: 0 additions & 6 deletions bin/.travis/ezplatform.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"ibexa/ci-scripts": "^0.1@dev",
"ezsystems/doctrine-dbal-schema": "^1.0@dev",
"ezsystems/behatbundle": "^8.3@dev",
"ezsystems/ezplatform-http-cache": "^2.3@dev",
"ezsystems/ezplatform-rest": "^1.3@dev",
"phpunit/phpunit": "^8.2",
"matthiasnoback/symfony-dependency-injection-test": "^4.0",
"behat/behat": "^3.5",
Expand Down Expand Up @@ -54,6 +56,8 @@
}
},
"scripts": {
"fix-cs": "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.dist"
}
}

0 comments on commit 5f42a2c

Please sign in to comment.