Skip to content

Commit 8b8fb4c

Browse files
authored
Merge pull request #13 from byjg/6.0
Version 6.0 - Major Architecture Refactoring and Enhanced Documentation
2 parents 8493577 + e2a0abc commit 8b8fb4c

File tree

70 files changed

+6970
-2870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+6970
-2870
lines changed

.github/workflows/phpunit.yml

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,50 @@ on:
1212
jobs:
1313
Build:
1414
runs-on: 'ubuntu-latest'
15-
container: 'byjg/php:${{ matrix.php-version }}-cli'
15+
container:
16+
image: 'byjg/php:${{ matrix.php-version }}-cli'
17+
options: --user root --privileged
1618
strategy:
1719
matrix:
1820
php-version:
21+
- "8.5"
22+
- "8.4"
1923
- "8.3"
20-
- "8.2"
21-
- "8.1"
2224

2325
steps:
24-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v5
2527
- run: composer install
26-
- run: ./vendor/bin/psalm
27-
- run: ./vendor/bin/phpunit --stderr
28+
- run: composer test
29+
30+
Psalm:
31+
name: Psalm Static Analyzer
32+
runs-on: ubuntu-latest
33+
permissions:
34+
# for github/codeql-action/upload-sarif to upload SARIF results
35+
security-events: write
36+
container:
37+
image: byjg/php:8.4-cli
38+
options: --user root --privileged
39+
40+
steps:
41+
- name: Git checkout
42+
uses: actions/checkout@v4
43+
44+
- name: Composer
45+
run: composer install
46+
47+
- name: Psalm
48+
# Note: Ignoring error code 2, which just signals that some
49+
# flaws were found, not that Psalm itself failed to run.
50+
run: ./vendor/bin/psalm
51+
--show-info=true
52+
--report=psalm-results.sarif || [ $? = 2 ]
53+
54+
- name: Upload Analysis results to GitHub
55+
uses: github/codeql-action/upload-sarif@v4
56+
if: github.ref == 'refs/heads/master'
57+
with:
58+
sarif_file: psalm-results.sarif
2859

2960
Documentation:
3061
if: github.ref == 'refs/heads/master'
@@ -33,5 +64,6 @@ jobs:
3364
with:
3465
folder: php
3566
project: ${{ github.event.repository.name }}
36-
secrets: inherit
67+
secrets:
68+
DOC_TOKEN: ${{ secrets.DOC_TOKEN }}
3769

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ vendor
55
.idea/*
66
!.idea/runConfigurations
77
.phpunit.result.cache
8+
/.claude/settings.local.json

.idea/runConfigurations/Psalm.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.idea/runConfigurations/psalm.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)