Repository navigation
74 lines (59 loc) 路 1.91 KB
/
Copy pathphpunit-sqlite.yml
File metadata and controls
74 lines (59 loc) 路 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# 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
#
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: PHPUnit SQLite
on:
push:
pull_request:
permissions:
contents: read
pull-requests: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
changes-and-matrix:
uses: ./.github/workflows/phpunit-prepare.yml
phpunit-sqlite:
runs-on: ubuntu-latest-low
needs: changes-and-matrix
if: needs.changes-and-matrix.outputs.src != 'false'
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.changes-and-matrix.outputs.matrix) }}
name: SQLite PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
steps:
- name: Checkout app
uses: actions/checkout@v7
with:
persist-credentials: false
- uses: ./.github/actions/phpunit
with:
database: sqlite
php-version: ${{ matrix.php-versions }}
server-version: ${{ matrix.server-versions }}
php-db-extensions: sqlite, pdo_sqlite
coverage: pcov
upload-coverage: true
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
needs: [changes-and-matrix, phpunit-sqlite]
if: always()
name: phpunit-sqlite-summary
steps:
- name: Summary status
run: |
if [ "${{ needs.changes-and-matrix.outputs.src }}" = "false" ]; then
echo "No relevant changes detected, skipping."
exit 0
fi
if [ "${{ needs.phpunit-sqlite.result }}" != "success" ]; then
echo "PHPUnit job failed or was cancelled."
exit 1
fi