Skip to content
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
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: PHP Composer

on:
push:

jobs:
test:
runs-on: ubuntu-18.04

strategy:
fail-fast: false
matrix:
php: [ '7.2', '7.3', '7.4' ]
composer: [ '', '--prefer-lowest' ]

steps:
- uses: actions/checkout@v2

- name: Use PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: sqlite3, zip
coverage: xdebug
tools: composer:v1

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-dir)"
working-directory: ./

- name: cache dependencies
id: angular-dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.composer }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php }}-${{ matrix.composer }}-composer-

- name: Validate composer.json and composer.lock
run: composer validate
working-directory: ./

- name: Install dependencies
env:
COMPOSER_FLAGS: ${{ matrix.composer }}
run: composer update ${COMPOSER_FLAGS} --prefer-source
working-directory: ./

- name: Run Tests
run: composer run-script ci-test
working-directory: ./
env:
SYMFONY_DEPRECATIONS_HELPER: weak
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},

"require": {
"propel/propel1": "^1.6.8",
"propel/propel1": "^1.7.2",
"symfony/framework-bundle": "^3.4|^4.0"
},
"require-dev": {
Expand All @@ -38,5 +38,12 @@

"suggest": {
"propel/propel-acl-bundle": "For using the Propel ACL implementation"
},

"scripts": {
"ci-test": [
"Composer\\Config::disableProcessTimeout",
"vendor/phpunit/phpunit/phpunit -c ./phpunit.xml.dist"
]
}
}