Skip to content

Commit

Permalink
Some tests with custom workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Jun 13, 2022
1 parent ff65646 commit ed068cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 32 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/phpunit-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- stable*

jobs:
phpunit-sqlite:
phpunit-custom:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,11 +19,14 @@ jobs:
submodules: true
path: server

- name: Install dependencies
run: |
sudo sed -i -e "s/\# deb-src/deb-src/g" /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep php php-ldap php-zip php-curl php-mbstsring php-intl php-gd php-imagick
- name: Checkout php
uses: actions/checkout@v3
with:
repository: php/php-src
path: php-src
run: git clone --depth=1 https://github.com/php/php-src.git

- name: Build php
working-directory: php-src
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/phpunit-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,3 @@ jobs:
- name: PHPUnit
working-directory: tests
run: ../lib/composer/bin/phpunit --configuration phpunit-autotest.xml

summary:
runs-on: ubuntu-latest
needs: phpunit-mysql

if: always()

name: phpunit-mysql-summary

steps:
- name: Summary status
run: if ${{ needs.phpunit-mysql.result != 'success' }}; then exit 1; fi
16 changes: 1 addition & 15 deletions .github/workflows/phpunit-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, gd
coverage: none

- name: composer i
Expand All @@ -56,17 +56,3 @@ jobs:
- name: PHPUnit
working-directory: tests
run: phpunit --configuration phpunit-autotest.xml

summary:
permissions:
contents: none
runs-on: ubuntu-latest
needs: phpunit-sqlite

if: always()

name: phpunit-sqlite-summary

steps:
- name: Summary status
run: if ${{ needs.phpunit-sqlite.result != 'success' }}; then exit 1; fi

0 comments on commit ed068cf

Please sign in to comment.