Skip to content

Commit 5ab3c55

Browse files
committed
Update test-framework
1 parent c44d7d7 commit 5ab3c55

File tree

7 files changed

+51
-18
lines changed

7 files changed

+51
-18
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
branches: [master, simplesamlphp-*]
1212
paths:
1313
- '**.md'
14+
workflow_dispatch:
1415

1516
jobs:
1617
quality:

.github/workflows/php.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,21 @@ jobs:
271271

272272
- name: Codecov
273273
uses: codecov/codecov-action@v3
274+
with:
275+
token: ${{ secrets.CODECOV_TOKEN }}
276+
fail_ci_if_error: true
277+
verbose: true
278+
279+
cleanup:
280+
name: Cleanup artifacts
281+
needs: [unit-tests-linux, coverage]
282+
runs-on: [ubuntu-latest]
283+
if: |
284+
always() &&
285+
needs.coverage.result == 'success' ||
286+
(needs.unit-tests-linux == 'success' && needs.coverage == 'skipped')
287+
288+
steps:
289+
- uses: geekyeggo/delete-artifact@v2
290+
with:
291+
name: coverage-data

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"php": "^8.0",
3030

3131
"simplesamlphp/composer-module-installer": "^1.3.4",
32-
"simplesamlphp/simplesamlphp": "^2.0.0",
32+
"simplesamlphp/simplesamlphp": "^3@dev",
3333
"simplesamlphp/xml-common": "^1.12.2"
3434
},
3535
"require-dev": {
File renamed without changes.

psalm-dev.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
name="SimpleSAMLphp testsuite"
4+
useDocblockTypes="true"
5+
errorLevel="4"
6+
reportMixedIssues="false"
7+
hideExternalErrors="true"
8+
allowStringToStandInForClass="true"
9+
>
10+
<projectFiles>
11+
<directory name="tests" />
12+
13+
<!-- Ignore certain directories -->
14+
<ignoreFiles>
15+
<directory name="vendor" />
16+
</ignoreFiles>
17+
</projectFiles>
18+
19+
<issueHandlers>
20+
<!-- Ignore UnresolvableInclude on CLI-scripts -->
21+
<UnresolvableInclude>
22+
<errorLevel type="suppress">
23+
<file name="tests/bootstrap.php" />
24+
</errorLevel>
25+
</UnresolvableInclude>
26+
</issueHandlers>
27+
</psalm>

psalm.xml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<projectFiles>
99
<directory name="config-templates" />
1010
<directory name="src" />
11-
<directory name="tests" />
1211
<directory name="www" />
1312
</projectFiles>
1413

@@ -30,21 +29,5 @@
3029
<MissingParamType errorLevel="info" />
3130
<UnusedClass errorLevel="info" />
3231
<PossiblyUnusedMethod errorLevel="info" />
33-
34-
<!-- Suppress PHPunit-issue -->
35-
<InternalMethod>
36-
<errorLevel type="suppress">
37-
<directory name="tests" />
38-
</errorLevel>
39-
</InternalMethod>
40-
41-
42-
<!-- Ignore UnresolvableInclude -->
43-
<UnresolvableInclude>
44-
<errorLevel type="suppress">
45-
<file name="tests/bootstrap.php" />
46-
<file name="tests/routers/configLoader.php" />
47-
</errorLevel>
48-
</UnresolvableInclude>
4932
</issueHandlers>
5033
</psalm>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"symbol-whitelist": [
3+
]
4+
}

0 commit comments

Comments
 (0)