Skip to content

Commit

Permalink
[DRE-93] sdk php (#236)
Browse files Browse the repository at this point in the history
* DRE-93 php sdk based on openapi

* config gitignore

* add ssl file

* fix crt path

* Add tests

* Add tests

* Add tests

* Add tests

* Add tests

* Change matrix version tests

* Config mockserver

* Fix base path

* Fix test command

* Change version

---------

Co-authored-by: Franklin <franklin.carrero@conekta.com>
  • Loading branch information
ezerozen and fcarrero authored Jul 19, 2023
1 parent 94d87b3 commit 5720aef
Show file tree
Hide file tree
Showing 580 changed files with 178,934 additions and 5,943 deletions.
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "../Dockerfile"
},
"containerEnv": {
"BASE_PATH" : "http://host.docker.internal:3000"
},
"customizations": {
"vscode": {
"extensions": [
"DEVSENSE.phptools-vscode",
"github.vscode-github-actions",
"bmewburn.vscode-intelephense-client",
"GitHub.copilot",
"ms-azuretools.vscode-docker",
"ms-vscode.makefile-tools"
]
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
Expand Down
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
; https://editorconfig.org/

root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

[*.{json,yml}]
indent_size = 2

[*.neon]
indent_style = tab

[Makefile]
indent_style = tab
5 changes: 0 additions & 5 deletions .env.dist

This file was deleted.

11 changes: 8 additions & 3 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
dependency-versions:
- "lowest"
- "highest"
Expand All @@ -40,5 +39,11 @@ jobs:
command: --version
level: 2
php_extensions: xdebug
- name: Install Mockserver
run: |
npm install -g @mockoon/cli
npx mockoon-cli start --data https://raw.githubusercontent.com/conekta/openapi/20230613/mocks/conekta_api.json --port 3000
- name: Run PHPUnit
run: vendor/bin/phpunit test/Conekta-2.0
run: vendor/bin/phpunit
env:
BASE_PATH: localhost:3000
26 changes: 0 additions & 26 deletions .github/workflows/lock-closed-issues.yml

This file was deleted.

46 changes: 31 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
# OS
.docker
# Ignore build files
build/*

# Mac OS X dumps these all over the place.
.DS_Store
*~
# Composer

# Ignore the SimpleTest library if it is installed to /test/.
/test/simpletest/

# Ignore the /vendor/ directory for people using composer
/vendor/

# If the vendor directory isn't being commited the composer.lock file should also be ignored
composer.lock
/vendor

INSTALL.txt
LICENSE.txt
README.txt
.phpunit.result.cache
demos/
extras/documentation
/.idea
# Ignore PHPUnit coverage file
clover.xml

# Ignore IDE's configuration files
.idea

# Ignore PHP CS Fixer local config and cache
.php_cs
.php_cs.cache
.php-cs-fixer.cache
.php-cs-fixer.php
.env.dist
.env

# Ignore PHPStan local config
.phpstan.neon

# Ignore phpDocumentor's local config and artifacts
.phpdoc/*
phpdoc.xml

# Ignore cached PHPUnit results.
.phpunit.result.cache
26 changes: 26 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
.travis.yml
git_push.sh

Loading

0 comments on commit 5720aef

Please sign in to comment.