Skip to content

Commit

Permalink
Merge pull request #1 from Edqe14/phpdocs
Browse files Browse the repository at this point in the history
Phpdocs
  • Loading branch information
Edqe14 authored Jan 3, 2024
2 parents 30f5d95 + acf5210 commit eaf7543
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 7 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release
on:
release:
types: [released]

jobs:
phpdoc:
name: PHPDoc
runs-on: ubuntu-latest

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2

- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Download PHPDoc
run: wget https://phpdoc.org/phpDocumentor.phar

- name: Generate PHPDoc
run: php phpDocumentor.phar -d src -t docs

- name: Deploy PHPDoc
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Tests
on: ['push', 'pull_request']
on: [pull_request]

jobs:
ci:
Expand All @@ -20,6 +20,6 @@ jobs:
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Tests
run: ./vendor/bin/pest
run: ./vendor/bin/pest --coverage
env:
UPLOADTHING_API_KEY: ${{ secrets.UPLOADTHING_API_KEY }}
UPLOADTHING_API_KEY: ${{ secrets.UPLOADTHING_API_KEY }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/vendor/
.phpdoc
docs
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "edqe/laravel-uploadthing",
"description": "UploadThing Laravel driver",
"version": "0.0.1",
"type": "library",
"license": "MIT",
"autoload": {
Expand Down Expand Up @@ -29,7 +28,8 @@
}
},
"require": {
"php": ">=8.0",
"illuminate/http": "^10.39",
"guzzlehttp/guzzle": "^7.8"
}
}
}
6 changes: 4 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions phpdoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpdocumentor
configVersion="3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://www.phpdoc.org"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/phpDocumentor/phpDocumentor/master/data/xsd/phpdoc.xsd"
>
<title>Laravel UploadThing</title>
<paths>
<output>docs</output>
</paths>
<version number="3.0.0">
<api>
<default-package-name>UploadThing</default-package-name>
<source dsn=".">
<path>src</path>
</source>
</api>
</version>
</phpdocumentor>

0 comments on commit eaf7543

Please sign in to comment.