Skip to content

Commit bb14ef3

Browse files
chore: sync repo
1 parent b3ae1b6 commit bb14ef3

File tree

486 files changed

+35764
-14977
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

486 files changed

+35764
-14977
lines changed

.editorconfig

Lines changed: 0 additions & 15 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +0,0 @@
1-
# Path-based git attributes
2-
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3-
4-
# Ignore all test and documentation with "export-ignore".
5-
/.gitattributes export-ignore
6-
/.gitignore export-ignore
7-
/.travis.yml export-ignore
8-
/phpunit.xml.dist export-ignore
9-
/scrutinizer.yml export-ignore
10-
/tests export-ignore

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
10+
pull_request:
11+
branches-ignore:
12+
- 'stl-preview-head/**'
13+
- 'stl-preview-base/**'
14+
15+
jobs:
16+
lint:
17+
timeout-minutes: 10
18+
name: lint
19+
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-php' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Set up PHP
26+
uses: 'shivammathur/setup-php@v2'
27+
with:
28+
php-version: '8.3'
29+
30+
- name: Run Bootstrap
31+
run: ./scripts/bootstrap
32+
33+
- name: Run lints
34+
run: ./scripts/lint
35+
test:
36+
timeout-minutes: 10
37+
name: test
38+
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-php' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
39+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- name: Set up PHP
44+
uses: 'shivammathur/setup-php@v2'
45+
with:
46+
php-version: '8.3'
47+
48+
- name: Run bootstrap
49+
run: ./scripts/bootstrap
50+
51+
- name: Run tests
52+
run: ./scripts/test

.github/workflows/coverage.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/create-releases.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Create releases
2+
on:
3+
schedule:
4+
- cron: '0 5 * * *' # every day at 5am UTC
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
release:
11+
name: release
12+
if: github.ref == 'refs/heads/main' && github.repository == 'stainless-sdks/imagekit-php'
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: stainless-api/trigger-release-please@v1
19+
id: release
20+
with:
21+
repo: ${{ github.event.repository.full_name }}
22+
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
23+
24+
- name: Publish to Packagist
25+
if: ${{ steps.release.outputs.releases_created }}
26+
run: |-
27+
curl --fail-with-body -X POST -H 'Content-Type: application/json' "https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_SAFE_KEY}" -d '{"repository":"https://www.github.com/stainless-sdks/imagekit-php"}'
28+
env:
29+
PACKAGIST_USERNAME: ${{ secrets.IMAGE_KIT_PACKAGIST_USERNAME || secrets.PACKAGIST_USERNAME }}
30+
PACKAGIST_SAFE_KEY: ${{ secrets.IMAGE_KIT_PACKAGIST_SAFE_KEY || secrets.PACKAGIST_SAFE_KEY }}

.github/workflows/release-doctor.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release Doctor
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
release_doctor:
10+
name: release doctor
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'stainless-sdks/imagekit-php' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Check release environment
18+
run: |
19+
bash ./bin/check-release-environment
20+
env:
21+
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}

.github/workflows/test.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/wiki.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.gitignore

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,11 @@
1-
# IntelliJ - PhpStorm and PyCharm
2-
.idea
3-
*.iml
4-
*.ipr
5-
*.iws
6-
7-
# Netbeans
8-
nbproject
9-
.nbproject
10-
.nbproject/*
11-
nbproject/*
12-
nbproject/private/
13-
build/
14-
nbbuild/
15-
dist/
16-
nbdist/
17-
nbactions.xml
18-
nb-configuration.xml
19-
20-
# Mac OSX
21-
.DS_Store
22-
# Thumbnails
23-
._*
24-
# Files that might appear on external disk
25-
.Spotlight-V100
26-
.Trashes
27-
28-
# SublimeText project files
29-
/*.sublime-project
30-
*.sublime-workspace
31-
32-
build
33-
docs
34-
vendor
35-
composer.phar
1+
composer.lock
2+
docs/
3+
.idea/
4+
.php-cs-fixer.cache
5+
.php-cs-fixer.php
6+
.phpunit.cache
367
phpunit.xml
37-
.vscode
38-
.phpunit*
39-
sample/vendor
40-
sample/composer.lock
41-
42-
*.phar
8+
playground/
9+
*.swo
10+
*.swp
11+
vendor/

.php-cs-fixer.dist.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
use PhpCsFixer\Config;
4+
use PhpCsFixer\Finder;
5+
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
6+
7+
return (new Config())
8+
->setParallelConfig(ParallelConfigFactory::detect())
9+
->setFinder(Finder::create()->in([__DIR__.'/src', __DIR__.'/tests']))
10+
->setRules([
11+
'@PhpCsFixer' => true,
12+
'phpdoc_align' => false,
13+
'new_with_parentheses' => ['named_class' => false],
14+
'ordered_types' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
15+
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
16+
])
17+
;

0 commit comments

Comments
 (0)