Skip to content

Commit

Permalink
Update DOC, and add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Feb 6, 2024
1 parent c43ccb6 commit 6ed5419
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Code validation

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: ['8.2']

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

- name: PHP validator
run: find . -type f -name "*.php" -print0 | xargs -0 -n1 -P8 php -l

- name: PHPCSFixer
uses: docker://oskarstark/php-cs-fixer-ga:3.1.0
with:
args: --config=.php-cs-fixer.dist.php --diff --dry-run
7 changes: 4 additions & 3 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('var')
;

$config = new PhpCsFixer\Config();
Expand All @@ -18,6 +19,6 @@
'sort_algorithm' => 'none',
],
])
->setFinder($finder)
->setRiskyAllowed(true)
;
->setFinder($finder)
->setRiskyAllowed(true)
;
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
ExternalAPIBundle
=================

WARNING: We cannot guarantee that this module is compatible with new versions of PuMuKIT.

This package allow to interact with PuMuKIT through an external API. It is a RESTful API that allows to create and update Multimedia Objects.

API Examples using curl:

##### New mediapackage
##### New media package
```
curl -X POST -f -i --basic -u admin:admin http://localhost:8000/app_dev.php/api/ingest/createMediaPackage
```
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"bundle",
"pumukit"
],
"homepage": "https://gitlab.teltek.es/pumukit/PumukitExternalAPIBundle.git",
"homepage": "https://github.com/teltek/PumukitExternalAPIBundle.git",
"license": "proprietary",
"authors": [
{
Expand All @@ -17,7 +17,7 @@
}
],
"require": {
"php": ">=7.2",
"php": "^8.2",
"pumukit/pumukit": "^4.0",
"ext-simplexml": "*",
"ext-json": "*",
Expand Down

0 comments on commit 6ed5419

Please sign in to comment.