Skip to content

Commit

Permalink
Merge pull request #48 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-php after onfido-openapi-spec update (62dc554)
  • Loading branch information
dvacca-onfido authored Jun 4, 2024
2 parents ed72f03 + d486f0a commit 20f6196
Show file tree
Hide file tree
Showing 11 changed files with 7,083 additions and 1,156 deletions.
50 changes: 33 additions & 17 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,36 @@ jobs:
php-version: ["8.3"]

steps:
- uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-version }}
- name: Test with phpunit
if: ${{ github.event.pull_request.head.repo.full_name == github.repository &&
github.actor != 'dependabot[bot]' }}
run: |
vendor/bin/phpunit
env:
ONFIDO_API_TOKEN: ${{ secrets.ONFIDO_API_TOKEN }}
ONFIDO_SAMPLE_APPLICANT_ID: ${{ secrets.ONFIDO_SAMPLE_APPLICANT_ID }}
ONFIDO_SAMPLE_VIDEO_ID_1: ${{ secrets.ONFIDO_SAMPLE_VIDEO_ID_1 }}
ONFIDO_SAMPLE_VIDEO_ID_2: ${{ secrets.ONFIDO_SAMPLE_VIDEO_ID_2 }}
ONFIDO_SAMPLE_MOTION_ID_1: ${{ secrets.ONFIDO_SAMPLE_MOTION_ID_1 }}
ONFIDO_SAMPLE_MOTION_ID_2: ${{ secrets.ONFIDO_SAMPLE_MOTION_ID_2 }}
- uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-version }}
- name: Test with phpunit
if: ${{ github.event.pull_request.head.repo.full_name == github.repository &&
github.actor != 'dependabot[bot]' }}
run: |
vendor/bin/phpunit
env:
ONFIDO_API_TOKEN: ${{ secrets.ONFIDO_API_TOKEN }}
ONFIDO_SAMPLE_APPLICANT_ID: ${{ secrets.ONFIDO_SAMPLE_APPLICANT_ID }}
ONFIDO_SAMPLE_VIDEO_ID_1: ${{ secrets.ONFIDO_SAMPLE_VIDEO_ID_1 }}
ONFIDO_SAMPLE_VIDEO_ID_2: ${{ secrets.ONFIDO_SAMPLE_VIDEO_ID_2 }}
ONFIDO_SAMPLE_MOTION_ID_1: ${{ secrets.ONFIDO_SAMPLE_MOTION_ID_1 }}
ONFIDO_SAMPLE_MOTION_ID_2: ${{ secrets.ONFIDO_SAMPLE_MOTION_ID_2 }}

publish:
runs-on: ubuntu-latest
needs: integration-tests
if: github.event_name == 'release'
environment: delivery
steps:
- name: Notify packagist.org about the new package
run: |
curl -XPOST -H'content-type:application/json' \
"https://packagist.org/api/update-package?username=${PACKAGIST_API_USER}&apiToken=${PACKAGIST_API_TOKEN}" \
-d'{"repository":{"url":"${{ github.server_url }}/${{ github.repository }}"}}'
env:
PACKAGIST_API_USER: ${{ secrets.PACKAGIST_API_USER }}
PACKAGIST_API_TOKEN: ${{ secrets.PACKAGIST_API_TOKEN }}

3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

## v7.0.0 31th May 2024
## v7.0.0 12th Jun 2024

- Make library auto-generated and based on [Onfido OpenAPI spec](https://github.com/onfido/onfido-openapi-spec)
- Refresh library up to commit: [62dc554](https://github.com/onfido/onfido-openapi-spec/commit/62dc5541a4a51e8de313fc99fb3dec496033a23e)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Webhook events payload needs to be verified before it can be accessed. Library a

```php
try {
$verifier = new Onfido\WebhookEventVerifier('_ABC123abc...3ABC123_');
$verifier = new Onfido\WebhookEventVerifier(getenv('ONFIDO_WEBHOOK_SECRET_TOKEN'));

$signature = 'a0...760e';

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"rest",
"api"
],
"homepage": "https://openapi-generator.tech",
"homepage": "https://documentation.onfido.com",
"license": "MIT",
"authors": [
{
Expand Down
Loading

0 comments on commit 20f6196

Please sign in to comment.