Skip to content

Commit

Permalink
more trickle-down CI
Browse files Browse the repository at this point in the history
  • Loading branch information
battis committed Mar 18, 2024
1 parent f46e899 commit 6edc79f
Show file tree
Hide file tree
Showing 10 changed files with 102 additions and 24 deletions.
6 changes: 0 additions & 6 deletions packages/crud/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions packages/oauth2-server/.gitignore

This file was deleted.

3 changes: 3 additions & 0 deletions packages/phpunit-sessions/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.github export-ignore
/phpunit.xml export-ignore
/tests export-ignore
23 changes: 23 additions & 0 deletions packages/phpunit-sessions/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on: [push]
jobs:
build-test:
runs-on: ubuntu-latest
environment: actions
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_extensions: xdebug
coverage_clover: coverage.xml
- if: success() || failure()
uses: codecov/codecov-action@v4
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 0 additions & 6 deletions packages/phpunit-sessions/.gitignore

This file was deleted.

25 changes: 25 additions & 0 deletions packages/phpunit-sessions/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
executionOrder="depends,defects"
requireCoverageMetadata="true"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<source
restrictDeprecations="true"
restrictNotices="true"
restrictWarnings="true"
>
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
3 changes: 3 additions & 0 deletions packages/user-session/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.github export-ignore
/phpunit.xml export-ignore
/tests export-ignore
23 changes: 23 additions & 0 deletions packages/user-session/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on: [push]
jobs:
build-test:
runs-on: ubuntu-latest
environment: actions
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_extensions: xdebug
coverage_clover: coverage.xml
- if: success() || failure()
uses: codecov/codecov-action@v4
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 0 additions & 6 deletions packages/user-session/.gitignore

This file was deleted.

25 changes: 25 additions & 0 deletions packages/user-session/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
executionOrder="depends,defects"
requireCoverageMetadata="true"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<source
restrictDeprecations="true"
restrictNotices="true"
restrictWarnings="true"
>
<include>
<directory>src</directory>
</include>
</source>
</phpunit>

0 comments on commit 6edc79f

Please sign in to comment.