Skip to content

Commit

Permalink
Merge pull request #268 from FriendsOfSymfony1/switch-to-github-actions
Browse files Browse the repository at this point in the history
Use GitHub actions for Continuous Integration tests
  • Loading branch information
thePanz committed Nov 25, 2022
2 parents 6b82513 + 21b7381 commit d0e631d
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 49 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Continuous Integration"

on: [push]

env:
fail-fast: true

jobs:
tests:
name: "Symfony1 Tests"
runs-on: "ubuntu-22.04"

strategy:
matrix:
php-version:
- "7.4"
# - "8.0"
# - "8.1"
memcached-version:
- "1.6"

services:
memcached:
image: "memcached:${{ matrix.memcached-version }}"

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
submodules: "true"

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

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

- name: "Run Check configuration"
run: "php data/bin/check_configuration.php"

- name: "Run Tests"
run: "php data/bin/symfony symfony:test --trace"
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine
Submodule doctrine updated 88 files
+48 −0 .docker/php53/Dockerfile
+5 −0 .docker/php54/Dockerfile
+6 −0 .docker/php55_71/Dockerfile
+22 −0 .docker/php72_73/Dockerfile
+34 −0 .docker/php74_81/Dockerfile
+7 −0 .gitattributes
+5 −1 .gitignore
+41 −11 .travis.yml
+0 −341 CHANGELOG
+20 −0 CHANGELOG.md
+54 −0 README.md
+31 −8 composer.json
+138 −0 docker-compose.yml
+5 −0 lib/Doctrine/Access.php
+1 −0 lib/Doctrine/Adapter/Mock.php
+1 −1 lib/Doctrine/Cli.php
+34 −8 lib/Doctrine/Collection.php
+5 −0 lib/Doctrine/Collection/OnDemand.php
+31 −4 lib/Doctrine/Connection.php
+5 −0 lib/Doctrine/Connection/Mysql.php
+12 −10 lib/Doctrine/Connection/Profiler.php
+22 −4 lib/Doctrine/Connection/Sqlite.php
+11 −4 lib/Doctrine/Connection/Statement.php
+3 −3 lib/Doctrine/Connection/UnitOfWork.php
+1 −1 lib/Doctrine/Core.php
+2 −2 lib/Doctrine/Event.php
+1 −1 lib/Doctrine/Export/Mysql.php
+1 −1 lib/Doctrine/Formatter.php
+12 −9 lib/Doctrine/Hydrator/Graph.php
+190 −33 lib/Doctrine/Import/Builder.php
+4 −2 lib/Doctrine/Manager.php
+1 −1 lib/Doctrine/Migration/Builder.php
+1 −1 lib/Doctrine/Migration/Diff.php
+1 −0 lib/Doctrine/Node.php
+1 −1 lib/Doctrine/Parser/Xml.php
+4 −4 lib/Doctrine/Parser/sfYaml/sfYamlInline.php
+7 −5 lib/Doctrine/Query.php
+278 −150 lib/Doctrine/Query/Abstract.php
+1 −1 lib/Doctrine/Query/Having.php
+1 −1 lib/Doctrine/Query/Tokenizer.php
+1 −1 lib/Doctrine/RawSql.php
+42 −21 lib/Doctrine/Record.php
+3 −3 lib/Doctrine/Record/Abstract.php
+15 −9 lib/Doctrine/Record/Filter.php
+46 −23 lib/Doctrine/Record/Filter/Compound.php
+8 −10 lib/Doctrine/Record/Filter/Standard.php
+1 −0 lib/Doctrine/Record/Iterator.php
+4 −0 lib/Doctrine/Relation.php
+4 −0 lib/Doctrine/Search/File.php
+80 −29 lib/Doctrine/Table.php
+2 −0 lib/Doctrine/Table/Repository.php
+2 −2 lib/Doctrine/Task.php
+6 −6 lib/Doctrine/Template/Geographical.php
+7 −9 lib/Doctrine/Template/Listener/Timestampable.php
+64 −58 lib/Doctrine/Validator.php
+6 −3 lib/Doctrine/Validator/ErrorStack.php
+2 −0 lib/Doctrine/Validator/Exception.php
+2 −2 lib/Doctrine/Validator/HtmlColor.php
+1 −1 lib/Doctrine/Validator/Notblank.php
+11 −10 tests/BaseTestCase.php
+2 −6 tests/CliTestCase.php
+4 −1 tests/Connection/CustomTestCase.php
+1 −1 tests/CustomResultSetOrderTestCase.php
+37 −9 tests/DoctrineTest/Doctrine_UnitTestCase.php
+59 −10 tests/DoctrineTest/UnitTestCase.php
+1 −0 tests/EventListenerTestCase.php
+2 −0 tests/ExtensionTestCase.php
+19 −0 tests/Hydrate/CollectionInitializationTestCase.php
+1 −1 tests/Hydrate/FetchModeTestCase.php
+1 −1 tests/HydrateTestCase.php
+20 −20 tests/Import/BuilderTestCase.php
+9 −2 tests/ManagerTestCase.php
+7 −7 tests/Migration/BaseTestCase.php
+112 −23 tests/Query/MultiJoinTestCase.php
+8 −3 tests/Record/FromArrayTestCase.php
+16 −5 tests/Record/SynchronizeTestCase.php
+1 −1 tests/Relation/AccessTestCase.php
+32 −1 tests/TaskTestCase.php
+1 −1 tests/Ticket/1254TestCase.php
+8 −2 tests/Ticket/1674TestCase.php
+5 −2 tests/Ticket/1783TestCase.php
+2 −2 tests/Ticket/982TestCase.php
+1 −0 tests/Ticket/DC521TestCase.php
+7 −0 tests/ValidatorTestCase.php
+76 −0 tests/bin/test
+26 −25 tests/run.php
+0 −16 tests/tmp/Ticket_1527_User.php
+0 −40 tests/tmp/generated/BaseTicket_1527_User.php
2 changes: 1 addition & 1 deletion lib/vendor/swiftmailer
Submodule swiftmailer updated 168 files
2 changes: 1 addition & 1 deletion test/unit/validator/sfValidatorFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function getMimeTypesFromCategory($category)
$v = new testValidatorFile();
$t->is($v->guessFromFileBinary($tmpDir.'/test.txt'), 'text/plain', '->guessFromFileBinary() guesses the type of a given file');
$t->is($v->guessFromFileBinary($tmpDir.'/foo.txt'), null, '->guessFromFileBinary() returns null if the file type is not guessable');
$t->is($v->guessFromFileBinary('/bin/ls'), (PHP_OS != 'Darwin') ? 'application/x-executable' : 'application/octet-stream', '->guessFromFileBinary() returns correct type if file is guessable');
$t->is($v->guessFromFileBinary('/bin/ls'), (PHP_OS != 'Darwin') ? 'application/x-pie-executable' : 'application/octet-stream', '->guessFromFileBinary() returns correct type if file is guessable');
$t->is($v->guessFromFileBinary('-test'), null, '->guessFromFileBinary() returns null if file path has leading dash');

// ->getMimeType()
Expand Down

0 comments on commit d0e631d

Please sign in to comment.