Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore(CI): Add summary for CI enforcement
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Apr 21, 2023
commit dd831484771ab8f572dbccfdb1ee20d7a58d1ccb
63 changes: 63 additions & 0 deletions .github/workflows/phpunit-summary-when-unrelated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization

name: PHPUnit

on:
pull_request:
paths-ignore:
- '.github/workflows/phpunit.yml'
- 'appinfo/**'
- 'lib/**'
- 'templates/**'
- 'tests/**'

permissions:
contents: read

jobs:
summary-mysql:
permissions:
contents: none
runs-on: ubuntu-latest

name: phpunit-mysql-summary

steps:
- name: Summary status
run: 'echo "No PHP files changed, skipped PHPUnit"'

summary-oci:
permissions:
contents: none
runs-on: ubuntu-latest

name: phpunit-oci-summary

steps:
- name: Summary status
run: 'echo "No PHP files changed, skipped PHPUnit"'

summary-pgsql:
permissions:
contents: none
runs-on: ubuntu-latest

name: phpunit-pgsql-summary

steps:
- name: Summary status
run: 'echo "No PHP files changed, skipped PHPUnit"'

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

name: phpunit-sqlite-summary

steps:
- name: Summary status
run: 'echo "No PHP files changed, skipped PHPUnit"'
56 changes: 56 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,59 @@ jobs:
- name: PHPUnit
working-directory: apps/${{ env.APP_NAME }}/tests/Unit
run: ../../vendor/bin/phpunit -c phpunit.xml

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

if: always()

name: phpunit-sqlite-summary

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

summary-mysql:
permissions:
contents: none
runs-on: ubuntu-latest
needs: mysql

if: always()

name: phpunit-mysql-summary

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

summary-pgsql:
permissions:
contents: none
runs-on: ubuntu-latest
needs: pgsql

if: always()

name: phpunit-pgsql-summary

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

summary-oci:
permissions:
contents: none
runs-on: ubuntu-latest
needs: oci

if: always()

name: phpunit-oci-summary

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