-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added github build and removed travis config
- Loading branch information
Showing
2 changed files
with
49 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.