Skip to content

Commit 20082c2

Browse files
authored
Merge pull request #118 from cloudinary-community/fix/tests
fix: tests
2 parents 81fc033 + 7acb7fb commit 20082c2

13 files changed

+2068
-2381
lines changed

.github/workflows/tests.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [8.3]
17+
18+
name: PHP ${{ matrix.php }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: sqlite, pdo_sqlite
29+
tools: composer:v2
30+
coverage: none
31+
32+
- name: Install dependencies
33+
run: composer install --no-interaction --prefer-dist --optimize-autoloader
34+
35+
- name: Execute tests
36+
run: vendor/bin/pest

composer.json

Lines changed: 60 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,64 @@
11
{
2-
"name": "cloudinary-labs/cloudinary-laravel",
3-
"description": "A Laravel Cloudinary Package",
4-
"license": "MIT",
5-
"authors": [
6-
{
7-
"name": "Prosper Otemuyiwa",
8-
"email": "prosperotemuyiwa@gmail.com",
9-
"homepage": "https://github.com/unicodeveloper"
10-
}
11-
],
12-
"homepage": "https://github.com/cloudinary-labs/cloudinary-laravel",
13-
"keywords": [
14-
"Laravel",
15-
"cloudinary-laravel",
16-
"File Uploads",
17-
"Media Management",
18-
"Cloudinary",
19-
"File Transformations"
20-
],
21-
"require": {
22-
"php": ">=7.2",
23-
"illuminate/support": "~6|~7|~8|^9.0|^10.0|^11.0",
24-
"cloudinary/cloudinary_php": "^2.0",
25-
"ext-json": "*"
26-
},
27-
"require-dev": {
28-
"phpunit/phpunit": "^8.0|^9.5.10|^10.0|^11.0",
29-
"mockery/mockery": "^1.1",
30-
"orchestra/testbench": "~4|~5|~6|^7.0|^8.0|^9.0",
31-
"sempro/phpunit-pretty-print": "^1.0"
32-
},
33-
"autoload": {
34-
"psr-4": {
35-
"CloudinaryLabs\\CloudinaryLaravel\\": "src/"
36-
},
37-
"files": [
38-
"src/Support/helpers.php"
39-
]
40-
},
41-
"autoload-dev": {
42-
"psr-4": {
43-
"CloudinaryLabs\\CloudinaryLaravel\\Tests\\": "tests"
44-
}
2+
"name": "cloudinary-labs/cloudinary-laravel",
3+
"description": "A Laravel Cloudinary Package",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Prosper Otemuyiwa",
8+
"email": "prosperotemuyiwa@gmail.com",
9+
"homepage": "https://github.com/unicodeveloper"
10+
}
11+
],
12+
"homepage": "https://github.com/cloudinary-labs/cloudinary-laravel",
13+
"keywords": [
14+
"Laravel",
15+
"cloudinary-laravel",
16+
"File Uploads",
17+
"Media Management",
18+
"Cloudinary",
19+
"File Transformations"
20+
],
21+
"scripts": {
22+
"test": "pest"
23+
},
24+
"require": {
25+
"php": ">=7.2",
26+
"illuminate/support": "~6|~7|~8|^9.0",
27+
"cloudinary/cloudinary_php": "^2.0",
28+
"ext-json": "*"
29+
},
30+
"require-dev": {
31+
"mockery/mockery": "^1.1",
32+
"orchestra/testbench": "~4|~5|~6",
33+
"sempro/phpunit-pretty-print": "^1.0",
34+
"pestphp/pest": "^1.23"
35+
},
36+
"autoload": {
37+
"psr-4": {
38+
"CloudinaryLabs\\CloudinaryLaravel\\": "src/"
4539
},
46-
"extra": {
47-
"laravel": {
48-
"providers": [
49-
"CloudinaryLabs\\CloudinaryLaravel\\CloudinaryServiceProvider"
50-
],
51-
"aliases": {
52-
"Cloudinary": "CloudinaryLabs\\CloudinaryLaravel\\Facades\\Cloudinary"
53-
}
54-
}
40+
"files": [
41+
"src/Support/helpers.php"
42+
]
43+
},
44+
"autoload-dev": {
45+
"psr-4": {
46+
"Tests\\": "tests"
47+
}
48+
},
49+
"extra": {
50+
"laravel": {
51+
"providers": [
52+
"CloudinaryLabs\\CloudinaryLaravel\\CloudinaryServiceProvider"
53+
],
54+
"aliases": {
55+
"Cloudinary": "CloudinaryLabs\\CloudinaryLaravel\\Facades\\Cloudinary"
56+
}
57+
}
58+
},
59+
"config": {
60+
"allow-plugins": {
61+
"pestphp/pest-plugin": true
5562
}
63+
}
5664
}

0 commit comments

Comments
 (0)