Skip to content

Commit

Permalink
Add Rick and Morty import Job in Symfony test suite (#162)
Browse files Browse the repository at this point in the history
* Add Rick and Morty import Job in Symfony test suite

* Allow more version of Symfony HttpClient
  • Loading branch information
yann-eugone authored Feb 3, 2025
1 parent 2ec218c commit a39460b
Show file tree
Hide file tree
Showing 81 changed files with 820 additions and 155 deletions.
1 change: 1 addition & 0 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ runs:
composer require --quiet --no-update "symfony/finder:${{ inputs.symfony-version }}" --dev
composer require --quiet --no-update "symfony/process:${{ inputs.symfony-version }}" --dev
composer require --quiet --no-update "symfony/yaml:${{ inputs.symfony-version }}" --dev
composer require --quiet --no-update "symfony/http-client:${{ inputs.symfony-version }}" --dev
composer update --no-interaction --no-progress
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"symfony/translation": "^6.4|^7.0",
"symfony/twig-bundle": "^6.4|^7.0",
"symfony/yaml": "^6.4|^7.0",
"symplify/easy-coding-standard": "^12.5"
"symplify/easy-coding-standard": "^12.5",
"symfony/http-client": "^6.4|^7.0"
},
"replace": {
"yokai/batch": "self.version",
Expand Down
3 changes: 3 additions & 0 deletions tests/symfony/data/rick-and-morty/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
LICENCE : Rick and Morty is created by Justin Roiland and Dan Harmon for Adult Swim. The data and images are used without claim of ownership and belong to their respective owners.
FROM : https://rickandmortyapi.com
DATE : 2025-01-29 14:18 UTC

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"info":{"count":826,"pages":42,"next":"https://rickandmortyapi.com/api/character/?page=3","prev":"https://rickandmortyapi.com/api/character/?page=1"},"results":[{"id":21,"name":"Aqua Morty","status":"unknown","species":"Humanoid","type":"Fish-Person","gender":"Male","origin":{"name":"unknown","url":""},"location":{"name":"Citadel of Ricks","url":"https://rickandmortyapi.com/api/location/3"},"image":"https://rickandmortyapi.com/api/character/avatar/21.jpeg","episode":["https://rickandmortyapi.com/api/episode/10","https://rickandmortyapi.com/api/episode/22"],"url":"https://rickandmortyapi.com/api/character/21","created":"2017-11-04T22:39:48.055Z"},{"id":22,"name":"Aqua Rick","status":"unknown","species":"Humanoid","type":"Fish-Person","gender":"Male","origin":{"name":"unknown","url":""},"location":{"name":"Citadel of Ricks","url":"https://rickandmortyapi.com/api/location/3"},"image":"https://rickandmortyapi.com/api/character/avatar/22.jpeg","episode":["https://rickandmortyapi.com/api/episode/10","https://rickandmortyapi.com/api/episode/22","https://rickandmortyapi.com/api/episode/28"],"url":"https://rickandmortyapi.com/api/character/22","created":"2017-11-04T22:41:07.171Z"},{"id":23,"name":"Arcade Alien","status":"unknown","species":"Alien","type":"","gender":"Male","origin":{"name":"unknown","url":""},"location":{"name":"Immortality Field Resort","url":"https://rickandmortyapi.com/api/location/7"},"image":"https://rickandmortyapi.com/api/character/avatar/23.jpeg","episode":["https://rickandmortyapi.com/api/episode/13","https://rickandmortyapi.com/api/episode/19","https://rickandmortyapi.com/api/episode/21","https://rickandmortyapi.com/api/episode/25","https://rickandmortyapi.com/api/episode/26"],"url":"https://rickandmortyapi.com/api/character/23","created":"2017-11-05T08:43:05.095Z"},{"id":24,"name":"Armagheadon","status":"Alive","species":"Alien","type":"Cromulon","gender":"Male","origin":{"name":"Signus 5 Expanse","url":"https://rickandmortyapi.com/api/location/22"},"location":{"name":"Signus 5 Expanse","url":"https://rickandmortyapi.com/api/location/22"},"image":"https://rickandmortyapi.com/api/character/avatar/24.jpeg","episode":["https://rickandmortyapi.com/api/episode/16"],"url":"https://rickandmortyapi.com/api/character/24","created":"2017-11-05T08:48:30.776Z"},{"id":25,"name":"Armothy","status":"Dead","species":"unknown","type":"Self-aware arm","gender":"Male","origin":{"name":"Post-Apocalyptic Earth","url":"https://rickandmortyapi.com/api/location/8"},"location":{"name":"Post-Apocalyptic Earth","url":"https://rickandmortyapi.com/api/location/8"},"image":"https://rickandmortyapi.com/api/character/avatar/25.jpeg","episode":["https://rickandmortyapi.com/api/episode/23"],"url":"https://rickandmortyapi.com/api/character/25","created":"2017-11-05T08:54:29.343Z"},{"id":26,"name":"Arthricia","status":"Alive","species":"Alien","type":"Cat-Person","gender":"Female","origin":{"name":"Purge Planet","url":"https://rickandmortyapi.com/api/location/9"},"location":{"name":"Purge Planet","url":"https://rickandmortyapi.com/api/location/9"},"image":"https://rickandmortyapi.com/api/character/avatar/26.jpeg","episode":["https://rickandmortyapi.com/api/episode/20"],"url":"https://rickandmortyapi.com/api/character/26","created":"2017-11-05T08:56:46.165Z"},{"id":27,"name":"Artist Morty","status":"Alive","species":"Human","type":"","gender":"Male","origin":{"name":"unknown","url":""},"location":{"name":"Citadel of Ricks","url":"https://rickandmortyapi.com/api/location/3"},"image":"https://rickandmortyapi.com/api/character/avatar/27.jpeg","episode":["https://rickandmortyapi.com/api/episode/10","https://rickandmortyapi.com/api/episode/28"],"url":"https://rickandmortyapi.com/api/character/27","created":"2017-11-05T08:59:07.457Z"},{"id":28,"name":"Attila Starwar","status":"Alive","species":"Human","type":"","gender":"Male","origin":{"name":"unknown","url":""},"location":{"name":"Interdimensional Cable","url":"https://rickandmortyapi.com/api/location/6"},"image":"https://rickandmortyapi.com/api/character/avatar/28.jpeg","episode":["https://rickandmortyapi.com/api/episode/8","https://rickandmortyapi.com/api/episode/13","https://rickandmortyapi.com/api/episode/17"],"url":"https://rickandmortyapi.com/api/character/28","created":"2017-11-05T09:02:16.595Z"},{"id":29,"name":"Baby Legs","status":"Alive","species":"Human","type":"Human with baby legs","gender":"Male","origin":{"name":"unknown","url":""},"location":{"name":"Interdimensional Cable","url":"https://rickandmortyapi.com/api/location/6"},"image":"https://rickandmortyapi.com/api/character/avatar/29.jpeg","episode":["https://rickandmortyapi.com/api/episode/8"],"url":"https://rickandmortyapi.com/api/character/29","created":"2017-11-05T09:06:19.644Z"},{"id":30,"name":"Baby Poopybutthole","status":"Alive","species":"Poopybutthole","type":"","gender":"Male","origin":{"name":"unknown","url":""},"location":{"name":"unknown","url":""},"image":"https://rickandmortyapi.com/api/character/avatar/30.jpeg","episode":["https://rickandmortyapi.com/api/episode/31"],"url":"https://rickandmortyapi.com/api/character/30","created":"2017-11-05T09:13:16.483Z"},{"id":31,"name":"Baby Wizard","status":"Dead","species":"Alien","type":"Parasite","gender":"Male","origin":{"name":"unknown","url":""},"location":{"name":"Earth (Replacement Dimension)","url":"https://rickandmortyapi.com/api/location/20"},"image":"https://rickandmortyapi.com/api/character/avatar/31.jpeg","episode":["https://rickandmortyapi.com/api/episode/15"],"url":"https://rickandmortyapi.com/api/character/31","created":"2017-11-05T09:15:11.286Z"},{"id":32,"name":"Bearded Lady","status":"Dead","species":"Alien","type":"Parasite","gender":"Female","origin":{"name":"unknown","url":""},"location":{"name":"Earth (Replacement Dimension)","url":"https://rickandmortyapi.com/api/location/20"},"image":"https://rickandmortyapi.com/api/character/avatar/32.jpeg","episode":["https://rickandmortyapi.com/api/episode/15"],"url":"https://rickandmortyapi.com/api/character/32","created":"2017-11-05T09:18:04.184Z"},{"id":33,"name":"Beebo","status":"Dead","species":"Alien","type":"","gender":"Male","origin":{"name":"Venzenulon 7","url":"https://rickandmortyapi.com/api/location/10"},"location":{"name":"Venzenulon 7","url":"https://rickandmortyapi.com/api/location/10"},"image":"https://rickandmortyapi.com/api/character/avatar/33.jpeg","episode":["https://rickandmortyapi.com/api/episode/29"],"url":"https://rickandmortyapi.com/api/character/33","created":"2017-11-05T09:21:55.595Z"},{"id":34,"name":"Benjamin","status":"Alive","species":"Poopybutthole","type":"","gender":"Male","origin":{"name":"unknown","url":""},"location":{"name":"Interdimensional Cable","url":"https://rickandmortyapi.com/api/location/6"},"image":"https://rickandmortyapi.com/api/character/avatar/34.jpeg","episode":["https://rickandmortyapi.com/api/episode/8","https://rickandmortyapi.com/api/episode/13","https://rickandmortyapi.com/api/episode/17"],"url":"https://rickandmortyapi.com/api/character/34","created":"2017-11-05T09:24:04.748Z"},{"id":35,"name":"Bepisian","status":"Alive","species":"Alien","type":"Bepisian","gender":"unknown","origin":{"name":"Bepis 9","url":"https://rickandmortyapi.com/api/location/11"},"location":{"name":"Bepis 9","url":"https://rickandmortyapi.com/api/location/11"},"image":"https://rickandmortyapi.com/api/character/avatar/35.jpeg","episode":["https://rickandmortyapi.com/api/episode/1","https://rickandmortyapi.com/api/episode/11","https://rickandmortyapi.com/api/episode/19","https://rickandmortyapi.com/api/episode/25"],"url":"https://rickandmortyapi.com/api/character/35","created":"2017-11-05T09:27:38.491Z"},{"id":36,"name":"Beta-Seven","status":"Alive","species":"Alien","type":"Hivemind","gender":"unknown","origin":{"name":"unknown","url":""},"location":{"name":"unknown","url":""},"image":"https://rickandmortyapi.com/api/character/avatar/36.jpeg","episode":["https://rickandmortyapi.com/api/episode/14"],"url":"https://rickandmortyapi.com/api/character/36","created":"2017-11-05T09:31:08.952Z"},{"id":37,"name":"Beth Sanchez","status":"Alive","species":"Human","type":"","gender":"Female","origin":{"name":"Earth (C-500A)","url":"https://rickandmortyapi.com/api/location/23"},"location":{"name":"Earth (C-500A)","url":"https://rickandmortyapi.com/api/location/23"},"image":"https://rickandmortyapi.com/api/character/avatar/37.jpeg","episode":["https://rickandmortyapi.com/api/episode/8"],"url":"https://rickandmortyapi.com/api/character/37","created":"2017-11-05T09:38:22.960Z"},{"id":38,"name":"Beth Smith","status":"Alive","species":"Human","type":"","gender":"Female","origin":{"name":"Earth (C-137)","url":"https://rickandmortyapi.com/api/location/1"},"location":{"name":"Earth (C-137)","url":"https://rickandmortyapi.com/api/location/1"},"image":"https://rickandmortyapi.com/api/character/avatar/38.jpeg","episode":["https://rickandmortyapi.com/api/episode/1","https://rickandmortyapi.com/api/episode/2","https://rickandmortyapi.com/api/episode/3","https://rickandmortyapi.com/api/episode/4","https://rickandmortyapi.com/api/episode/5","https://rickandmortyapi.com/api/episode/6","https://rickandmortyapi.com/api/episode/22","https://rickandmortyapi.com/api/episode/51"],"url":"https://rickandmortyapi.com/api/character/38","created":"2017-11-05T09:48:44.230Z"},{"id":39,"name":"Beth Smith","status":"Alive","species":"Human","type":"","gender":"Female","origin":{"name":"Earth (Evil Rick's Target Dimension)","url":"https://rickandmortyapi.com/api/location/34"},"location":{"name":"Earth (Evil Rick's Target Dimension)","url":"https://rickandmortyapi.com/api/location/34"},"image":"https://rickandmortyapi.com/api/character/avatar/39.jpeg","episode":["https://rickandmortyapi.com/api/episode/10"],"url":"https://rickandmortyapi.com/api/character/39","created":"2017-11-05T09:52:31.777Z"},{"id":40,"name":"Beth's Mytholog","status":"Dead","species":"Mythological Creature","type":"Mytholog","gender":"Female","origin":{"name":"Nuptia 4","url":"https://rickandmortyapi.com/api/location/13"},"location":{"name":"Nuptia 4","url":"https://rickandmortyapi.com/api/location/13"},"image":"https://rickandmortyapi.com/api/character/avatar/40.jpeg","episode":["https://rickandmortyapi.com/api/episode/18"],"url":"https://rickandmortyapi.com/api/character/40","created":"2017-11-05T10:02:26.701Z"}]}
Loading

0 comments on commit a39460b

Please sign in to comment.