Skip to content

Commit

Permalink
Update test-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Aug 12, 2023
1 parent c44d7d7 commit 5ab3c55
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
branches: [master, simplesamlphp-*]
paths:
- '**.md'
workflow_dispatch:

jobs:
quality:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,21 @@ jobs:

- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true

cleanup:
name: Cleanup artifacts
needs: [unit-tests-linux, coverage]
runs-on: [ubuntu-latest]
if: |
always() &&
needs.coverage.result == 'success' ||
(needs.unit-tests-linux == 'success' && needs.coverage == 'skipped')
steps:
- uses: geekyeggo/delete-artifact@v2
with:
name: coverage-data
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"php": "^8.0",

"simplesamlphp/composer-module-installer": "^1.3.4",
"simplesamlphp/simplesamlphp": "^2.0.0",
"simplesamlphp/simplesamlphp": "^3@dev",
"simplesamlphp/xml-common": "^1.12.2"
},
"require-dev": {
Expand Down
File renamed without changes.
27 changes: 27 additions & 0 deletions psalm-dev.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<psalm
name="SimpleSAMLphp testsuite"
useDocblockTypes="true"
errorLevel="4"
reportMixedIssues="false"
hideExternalErrors="true"
allowStringToStandInForClass="true"
>
<projectFiles>
<directory name="tests" />

<!-- Ignore certain directories -->
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>

<issueHandlers>
<!-- Ignore UnresolvableInclude on CLI-scripts -->
<UnresolvableInclude>
<errorLevel type="suppress">
<file name="tests/bootstrap.php" />
</errorLevel>
</UnresolvableInclude>
</issueHandlers>
</psalm>
17 changes: 0 additions & 17 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<projectFiles>
<directory name="config-templates" />
<directory name="src" />
<directory name="tests" />
<directory name="www" />
</projectFiles>

Expand All @@ -30,21 +29,5 @@
<MissingParamType errorLevel="info" />
<UnusedClass errorLevel="info" />
<PossiblyUnusedMethod errorLevel="info" />

<!-- Suppress PHPunit-issue -->
<InternalMethod>
<errorLevel type="suppress">
<directory name="tests" />
</errorLevel>
</InternalMethod>


<!-- Ignore UnresolvableInclude -->
<UnresolvableInclude>
<errorLevel type="suppress">
<file name="tests/bootstrap.php" />
<file name="tests/routers/configLoader.php" />
</errorLevel>
</UnresolvableInclude>
</issueHandlers>
</psalm>
4 changes: 4 additions & 0 deletions tools/composer-require-checker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"symbol-whitelist": [
]
}

0 comments on commit 5ab3c55

Please sign in to comment.