Skip to content

Commit

Permalink
Added github build and removed travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jan 8, 2020
1 parent 08e7803 commit 8bf7a8d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 79 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build
on:
push: ~
pull_request: ~
schedule:
- cron: 5 8 * * 3
jobs:
checks:
name: PHP ${{ matrix.php-versions }}
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.2', '7.3']
steps:
- name: Set environment variables
run: |
echo "::set-env name=APP_ENV::test"
echo "::set-env name=DATABASE_URL::mysql://root:root@127.0.0.1/sylius?serverVersion=5.7"
- name: Checkout
uses: actions/checkout@v1
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: intl
- name: Install Composer dependencies
run: composer update --no-progress --no-suggest --prefer-dist --no-interaction
- name: Validate composer
run: composer validate --strict
- name: Check composer normalized
run: composer normalize --dry-run
- name: Check style
run: composer check-style
- name: Static analysis
run: composer analyse
- name: Run phpspec
run: composer phpspec
- name: Run phpunit
run: composer phpunit
- name: Setup database, assets and cache
run: |
(cd tests/Application && bin/console doctrine:database:create -vvv)
(cd tests/Application && bin/console doctrine:schema:create -vvv)
(cd tests/Application && bin/console assets:install public -vvv)
(cd tests/Application && bin/console cache:warmup -vvv)
- name: Run behat
run: vendor/bin/behat --strict -vvv --no-interaction || vendor/bin/behat --strict -vvv --no-interaction --rerun
79 changes: 0 additions & 79 deletions .travis.yml

This file was deleted.

0 comments on commit 8bf7a8d

Please sign in to comment.