Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Maintenance] Migrate travis to github actions #51

Merged
merged 1 commit into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build

on:
push: ~
pull_request: ~
release:
types: [created]
schedule:
-
cron: "0 1 * * 6" # Run at 1am every Saturday
workflow_dispatch: ~

jobs:
tests:
runs-on: ubuntu-latest
name: "PHP ${{ matrix.php }}"
strategy:
fail-fast: false
matrix:
php: ["7.1", "7.2", "7.3", "7.4", "8.0"]
symfony: ["~4.3", "~4.4", "~5.1", "~5.2", "~5.3", "~5.4", "~6.0"]

steps:
-
uses: actions/checkout@v2

-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none

-
name: Restrict Symfony version
if: matrix.symfony != ''
run: |
composer require symfony/event-dispatcher:${SYMFONY_VERSION} --no-update --dev
composer require symfony/property-access:${SYMFONY_VERSION} --no-update --dev
composer require symfony/expression-language:${SYMFONY_VERSION} --no-update --dev

-
name: Install dependencies
run: |
composer --no-interaction --prefer-source install

-
name: Run tests specification
run: bin/phpspec run -f dot
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.