Skip to content

Commit 15028dc

Browse files
committed
ci: fix phpunit config
1 parent 50799b0 commit 15028dc

File tree

9 files changed

+22
-35
lines changed

9 files changed

+22
-35
lines changed

.github/semantic.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Always validate the PR title AND all the commits
2+
titleAndCommits: true

.github/workflows/phpunit.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
COVERALLS_FLAG_NAME: ${{ runner.os }} - ${{ matrix.php }} - Laravel${{ matrix.laravel }}
7070
run: |
7171
composer global require php-coveralls/php-coveralls:^2.4
72-
php-coveralls --coverage_clover=.build/logs/clover.xml -v
72+
php-coveralls --coverage_clover=build/logs/clover.xml -v
7373
7474
upload-coverage:
7575
runs-on: ubuntu-latest
@@ -85,12 +85,13 @@ jobs:
8585
runs-on: ubuntu-latest
8686
needs: [ test, upload-coverage ]
8787
steps:
88-
- uses: actions/checkout@v2
89-
- uses: actions/setup-node@v2
88+
- uses: actions/checkout@v3
89+
- uses: actions/setup-node@v3
9090
with:
9191
node-version: 'lts/*'
9292

9393
- name: Run semantic-release
94+
if: github.repository == 'php-casbin/laravel-admin' && github.event_name == 'push'
9495
env:
9596
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
9697
run: npx semantic-release

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.DS_Store
2-
.build
2+
build/
33
phpunit.phar
44
/vendor
55
composer.phar

.releaserc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
plugins:
2+
- "@semantic-release/commit-analyzer"
3+
- "@semantic-release/release-notes-generator"
4+
- "@semantic-release/github"

phpunit.xml.dist

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
44
bootstrap="vendor/autoload.php"
55
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
96
processIsolation="false"
10-
stopOnFailure="true"
11-
verbose="true"
12-
>
7+
stopOnFailure="false"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
139
<testsuites>
14-
<testsuite name="all">
15-
<directory>tests/</directory>
10+
<testsuite name="Application Test Suite">
11+
<directory>./tests/</directory>
1612
</testsuite>
1713
</testsuites>
1814

1915
<coverage includeUncoveredFiles="true"
20-
pathCoverage="false"
21-
ignoreDeprecatedCodeUnits="true"
22-
disableCodeCoverageIgnore="true">
16+
pathCoverage="false"
17+
ignoreDeprecatedCodeUnits="true"
18+
disableCodeCoverageIgnore="true">
2319
<report>
24-
<clover outputFile=".build/logs/clover.xml"/>
25-
<html outputDirectory=".build/html" lowUpperBound="50" highLowerBound="90"/>
20+
<clover outputFile="build/logs/clover.xml"/>
21+
<html outputDirectory="build/html" lowUpperBound="50" highLowerBound="90"/>
2622
</report>
2723
</coverage>
2824

resources/assets/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css

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

resources/assets/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js

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

resources/assets/toastr/build/toastr.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)