Skip to content

Commit

Permalink
Merge pull request #118 from cloudinary-community/fix/tests
Browse files Browse the repository at this point in the history
fix: tests
  • Loading branch information
joshmanders authored Jul 29, 2024
2 parents 81fc033 + 7acb7fb commit 20082c2
Show file tree
Hide file tree
Showing 13 changed files with 2,068 additions and 2,381 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: tests

on:
push:
branches:
- master
pull_request:

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.3]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: sqlite, pdo_sqlite
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Execute tests
run: vendor/bin/pest
112 changes: 60 additions & 52 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,64 @@
{
"name": "cloudinary-labs/cloudinary-laravel",
"description": "A Laravel Cloudinary Package",
"license": "MIT",
"authors": [
{
"name": "Prosper Otemuyiwa",
"email": "[email protected]",
"homepage": "https://github.com/unicodeveloper"
}
],
"homepage": "https://github.com/cloudinary-labs/cloudinary-laravel",
"keywords": [
"Laravel",
"cloudinary-laravel",
"File Uploads",
"Media Management",
"Cloudinary",
"File Transformations"
],
"require": {
"php": ">=7.2",
"illuminate/support": "~6|~7|~8|^9.0|^10.0|^11.0",
"cloudinary/cloudinary_php": "^2.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^8.0|^9.5.10|^10.0|^11.0",
"mockery/mockery": "^1.1",
"orchestra/testbench": "~4|~5|~6|^7.0|^8.0|^9.0",
"sempro/phpunit-pretty-print": "^1.0"
},
"autoload": {
"psr-4": {
"CloudinaryLabs\\CloudinaryLaravel\\": "src/"
},
"files": [
"src/Support/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"CloudinaryLabs\\CloudinaryLaravel\\Tests\\": "tests"
}
"name": "cloudinary-labs/cloudinary-laravel",
"description": "A Laravel Cloudinary Package",
"license": "MIT",
"authors": [
{
"name": "Prosper Otemuyiwa",
"email": "[email protected]",
"homepage": "https://github.com/unicodeveloper"
}
],
"homepage": "https://github.com/cloudinary-labs/cloudinary-laravel",
"keywords": [
"Laravel",
"cloudinary-laravel",
"File Uploads",
"Media Management",
"Cloudinary",
"File Transformations"
],
"scripts": {
"test": "pest"
},
"require": {
"php": ">=7.2",
"illuminate/support": "~6|~7|~8|^9.0",
"cloudinary/cloudinary_php": "^2.0",
"ext-json": "*"
},
"require-dev": {
"mockery/mockery": "^1.1",
"orchestra/testbench": "~4|~5|~6",
"sempro/phpunit-pretty-print": "^1.0",
"pestphp/pest": "^1.23"
},
"autoload": {
"psr-4": {
"CloudinaryLabs\\CloudinaryLaravel\\": "src/"
},
"extra": {
"laravel": {
"providers": [
"CloudinaryLabs\\CloudinaryLaravel\\CloudinaryServiceProvider"
],
"aliases": {
"Cloudinary": "CloudinaryLabs\\CloudinaryLaravel\\Facades\\Cloudinary"
}
}
"files": [
"src/Support/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
"CloudinaryLabs\\CloudinaryLaravel\\CloudinaryServiceProvider"
],
"aliases": {
"Cloudinary": "CloudinaryLabs\\CloudinaryLaravel\\Facades\\Cloudinary"
}
}
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
}
Loading

0 comments on commit 20082c2

Please sign in to comment.