Skip to content

Commit

Permalink
:octocat:
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Mar 10, 2024
1 parent 145a05e commit d091f07
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 32 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ko_fi: codemasher
custom: "https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4"
67 changes: 36 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:

name: "CI"

env:
PHP_EXTENSIONS: curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib
PHP_INI_VALUES: memory_limit=-1, error_reporting=-1, display_errors=On

jobs:

static-code-analysis:
Expand Down Expand Up @@ -38,9 +42,9 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: pecl
extensions: ast, ${{ env.PHP_EXTENSIONS }}
ini-values: ${{ env.PHP_INI_VALUES }}
coverage: none
extensions: ast, curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib

- name: "Update dependencies with composer"
uses: ramsey/composer-install@v3
Expand All @@ -49,34 +53,6 @@ jobs:
run: php vendor/bin/phan --target-php-version=${{ matrix.php-version }}


build-docs:
name: "Build and publish Docs"

runs-on: ubuntu-latest

steps:
- name: "Checkout sources"
uses: actions/checkout@v4

- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
tools: phpDocumentor
coverage: none
extensions: curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib

- name: "Build Docs"
run: phpdoc --config=phpdoc.xml.dist

- name: "Publish Docs to gh-pages"
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: gh-pages
FOLDER: docs
CLEAN: true


tests:
name: "Unit Tests"
needs: static-code-analysis
Expand Down Expand Up @@ -104,8 +80,9 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: ${{ env.PHP_EXTENSIONS }}
ini-values: ${{ env.PHP_INI_VALUES }}
coverage: pcov
extensions: curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib

- name: "Install dependencies with composer"
uses: ramsey/composer-install@v3
Expand All @@ -124,3 +101,31 @@ jobs:
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: .build/coverage/clover.xml


build-docs:
name: "Build and publish Docs"

runs-on: ubuntu-latest

steps:
- name: "Checkout sources"
uses: actions/checkout@v4

- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
tools: phpDocumentor
extensions: simplexml
coverage: none

- name: "Build Docs"
run: phpdoc --config=phpdoc.xml.dist

- name: "Publish Docs to gh-pages"
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: gh-pages
FOLDER: docs
CLEAN: true

0 comments on commit d091f07

Please sign in to comment.