Skip to content

Commit

Permalink
:octocat:
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Jul 27, 2023
1 parent 1113b24 commit 1673994
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches:
- main

name: "Continuous Integration"
name: "CI"

jobs:

Expand All @@ -18,6 +18,14 @@ jobs:

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"

env:
PHAN_ALLOW_XDEBUG: 0
PHAN_DISABLE_XDEBUG_WARN: 1
Expand All @@ -29,16 +37,17 @@ jobs:
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
php-version: ${{ matrix.php-version }}
tools: pecl
coverage: none
extensions: ast, curl, json, simplexml, sodium, zlib
extensions: ast, curl, fileinfo, json, simplexml, sodium, zlib

- name: "Update dependencies with composer"
uses: ramsey/composer-install@v2

- name: "Run phan"
run: php vendor/bin/phan
run: php vendor/bin/phan --target-php-version=${{ matrix.php-version }}


build-docs:
name: "Build and publish Docs"
Expand All @@ -55,7 +64,7 @@ jobs:
php-version: "8.1"
tools: phpDocumentor
coverage: none
extensions: curl, json, simplexml, zlib
extensions: curl, fileinfo, json, simplexml, sodium, zlib

- name: "Build Docs"
run: phpdoc --config=phpdoc.xml
Expand All @@ -67,6 +76,7 @@ jobs:
FOLDER: docs
CLEAN: true


tests:
name: "Unit Tests"

Expand All @@ -81,6 +91,7 @@ jobs:
php-version:
- "8.1"
- "8.2"
- "8.3"

steps:
- name: "Checkout"
Expand All @@ -94,7 +105,7 @@ jobs:
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
extensions: curl, json, simplexml, sodium, zlib
extensions: curl, fileinfo, json, simplexml, sodium, zlib

- name: "Install dependencies with composer"
uses: ramsey/composer-install@v2
Expand Down
7 changes: 4 additions & 3 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
// Note that the **only** effect of choosing `'5.6'` is to infer
// that functions removed in php 7.0 exist.
// (See `backward_compatibility_checks` for additional options)
'target_php_version' => '8.1',
'target_php_version' => null,
'minimum_target_php_version' => '8.1',

// A list of directories that should be parsed for class and
// method information. After excluding the directories
Expand All @@ -23,7 +24,7 @@
//
// Thus, both first-party and third-party code being used by
// your application should be included in this list.
'directory_list' => [
'directory_list' => [
'examples',
'src',
'tests',
Expand All @@ -34,7 +35,7 @@
// exclude from parsing. Actual value will exclude every
// "test", "tests", "Test" and "Tests" folders found in
// "vendor/" directory.
'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',
'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',

// A directory list that defines files that will be excluded
// from static analysis, but whose class and method
Expand Down

0 comments on commit 1673994

Please sign in to comment.