Skip to content

Commit

Permalink
[CI] Moved to Github Actions (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon authored May 24, 2022
1 parent e4e8d5a commit 4442cd9
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/browser-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Browser tests

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

jobs:
rest:
name: "Functional REST tests"
uses: ezsystems/ezplatform/.github/workflows/[email protected]
with:
test-suite: "--profile=rest --tags=~@broken --suite=fullJson --non-strict"
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
32 changes: 32 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,35 @@ jobs:

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

functional:
name: REST tests
runs-on: "ubuntu-20.04"
timeout-minutes: 10
env:
COMPOSE_FILE: "doc/docker/base-dev.yml:doc/docker/selenium.yml"
SYMFONY_ENV: "behat"
PHP_IMAGE: "ezsystems/php:7.2-v1"
steps:
- uses: actions/checkout@v2

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: 7.1
coverage: none
extensions: pdo_sqlite, gd
tools: cs2pr

- name: Setup the project
run: ./tests/.travis/prepare_for_functional_tests.sh

- name: Run setup Command
run: |
cd "$HOME/build/ezplatform"
docker-compose --env-file=.env exec -T --user www-data app sh -c "bin/console ez:behat:create-language 'pol-PL' 'Polish (polski)'"
- name: Run tests
run: |
cd "$HOME/build/ezplatform"
docker-compose --env-file=.env exec -T --user www-data app sh -c "bin/phpunit -v vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishRestBundle/Tests/Functional"
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

0 comments on commit 4442cd9

Please sign in to comment.