Skip to content

Commit

Permalink
chore(CI): Add summary for CI enforcement
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Apr 21, 2023
1 parent f9be641 commit dd83148
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 0 deletions.
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

0 comments on commit dd83148

Please sign in to comment.