@@ -856,8 +856,6 @@ jobs:
856
856
run : rm -Rf tests/Fixtures/app/var/cache/*
857
857
- name : Convert annotations to attributes
858
858
run : |
859
- tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Document --transform-apisubresource -s -n
860
- tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Document --annotation-to-api-resource -s -n
861
859
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Entity --transform-apisubresource -s -n
862
860
tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Entity --annotation-to-api-resource -s -n
863
861
- name : Clear test app cache
@@ -897,7 +895,67 @@ jobs:
897
895
name : openapi-docs-php${{ matrix.php }}
898
896
path : build/out/openapi
899
897
continue-on-error : true
900
-
898
+
899
+ behat-rector-upgrade-mongodb :
900
+ name : Behat (PHP ${{ matrix.php }}) (Rector / MongoDB)
901
+ runs-on : ubuntu-latest
902
+ env :
903
+ APP_ENV : mongodb
904
+ MONGODB_URL : mongodb://localhost:27017
905
+ timeout-minutes : 20
906
+ strategy :
907
+ matrix :
908
+ php :
909
+ - ' 8.0'
910
+ fail-fast : false
911
+ steps :
912
+ - name : Checkout
913
+ uses : actions/checkout@v2
914
+ - name : Check
915
+ run : |
916
+ sudo systemctl start mongod.service
917
+ - name : Setup PHP
918
+ uses : shivammathur/setup-php@v2
919
+ with :
920
+ php-version : ${{ matrix.php }}
921
+ tools : pecl, composer
922
+ extensions : intl, bcmath, curl, openssl, mbstring, mongodb
923
+ ini-values : memory_limit=-1
924
+ - name : Get composer cache directory
925
+ id : composercache
926
+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
927
+ - name : Cache dependencies
928
+ uses : actions/cache@v2
929
+ with :
930
+ path : ${{ steps.composercache.outputs.dir }}
931
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
932
+ restore-keys : ${{ runner.os }}-composer-
933
+ - name : Update project dependencies
934
+ run : composer update --no-interaction --no-progress --ansi
935
+ - name : Require Symfony components and Rector dependencies
936
+ run : composer require symfony/uid rector/rector:0.12.5 --dev --no-interaction --no-progress --ansi
937
+ - name : Install PHPUnit
938
+ run : vendor/bin/simple-phpunit --version
939
+ - name : Clear test app cache
940
+ run : rm -Rf tests/Fixtures/app/var/cache/*
941
+ - name : Convert annotations to attributes
942
+ run : |
943
+ tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Document --transform-apisubresource -s -n
944
+ tests/Fixtures/app/console api:rector:upgrade tests/Fixtures/TestBundle/Document --annotation-to-api-resource -s -n
945
+ - name : Clear test app cache
946
+ run : rm -Rf tests/Fixtures/app/var/cache/*
947
+ - name : Run Behat tests
948
+ run : |
949
+ mkdir -p build/logs/behat
950
+ vendor/bin/behat --out=std --format=progress --format=junit --out=build/logs/behat/junit --profile=mongodb --no-interaction
951
+ - name : Upload test artifacts
952
+ if : always()
953
+ uses : actions/upload-artifact@v1
954
+ with :
955
+ name : behat-logs-php${{ matrix.php }}
956
+ path : build/logs/behat
957
+ continue-on-error : true
958
+
901
959
windows-phpunit :
902
960
name : Windows PHPUnit (PHP ${{ matrix.php }}) (SQLite)
903
961
runs-on : windows-latest
0 commit comments