Skip to content

Commit

Permalink
ci: remove unit test on php8.0 and add php8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Feb 8, 2024
1 parent e5d0fa5 commit da84181
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 40 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ['8.0', 8.1, 8.2] # 7.2,
php: [8.3, 8.1, 8.2]
# os: [ubuntu-latest] # , macOS-latest, windows-latest,
coverage: ['none']
include:
- description: 'Log Code Coverage'
php: '8.0'
coverage: 'xdebug'
# will not testing on php 7.2
# - os: 'ubuntu-latest'
# php: '7.2'
# phpunit: '8.5.13'

steps:
- name: Checkout
Expand Down Expand Up @@ -59,15 +51,6 @@ jobs:
- name: Install dependencies
run: composer update --no-progress

- name: Generate changelog file
id: changelog
if: ${{ matrix.php == '8.1' }}
run: |
curl https://github.com/gookit/gitw/releases/latest/download/chlog-linux-amd64 -L -o /usr/local/bin/chlog
chmod a+x /usr/local/bin/chlog
chlog -c .github/changelog.yml -o changelog.md prev last
cat changelog.md
# phpunit -v --debug
# phpdbg -dauto_globals_jit=Off-qrr $(which phpunit) --coverage-clover ./test/clover.info
- name: Run test suite
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vendor/
*.tgz
*.txt
*.cache
*.bak
.phpintel/
.env
.phpstorm.meta.php
Expand Down
33 changes: 11 additions & 22 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
colors="true"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="test/bootstrap.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">

<testsuites>
<testsuite name="Library Test Suite">
<directory>test/</directory>
</testsuite>
</testsuites>

<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" backupGlobals="false" bootstrap="test/bootstrap.php" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Library Test Suite">
<directory>test/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>

0 comments on commit da84181

Please sign in to comment.