Skip to content

Commit aac2c90

Browse files
committed
chore(workflow): Update oci workflows using version from stable28
Signed-off-by: Louis Chmn <[email protected]>
1 parent dbcd598 commit aac2c90

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

.github/workflows/oci.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: PHPUnit oci
22

3-
on: pull_request
3+
on:
4+
pull_request:
45

56
permissions:
67
contents: read
@@ -10,8 +11,31 @@ concurrency:
1011
cancel-in-progress: true
1112

1213
jobs:
14+
changes:
15+
runs-on: ubuntu-latest-low
16+
17+
outputs:
18+
src: ${{ steps.changes.outputs.src}}
19+
20+
steps:
21+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
22+
id: changes
23+
continue-on-error: true
24+
with:
25+
filters: |
26+
src:
27+
- '.github/workflows/**'
28+
- '3rdparty/**'
29+
- '**/lib/**'
30+
- '**/tests/**'
31+
- '**/vendor-bin/**'
32+
- '.php-cs-fixer.dist.php'
33+
- 'composer.json'
34+
- 'composer.lock'
35+
- '**.php'
36+
1337
phpunit-oci:
14-
runs-on: ubuntu-20.04
38+
runs-on: ubuntu-latest
1539

1640
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
1741

@@ -42,12 +66,12 @@ jobs:
4266
4367
steps:
4468
- name: Checkout server
45-
uses: actions/checkout@v3
69+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4670
with:
4771
submodules: true
4872

4973
- name: Set up php ${{ matrix.php-versions }}
50-
uses: shivammathur/setup-php@v2
74+
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
5175
with:
5276
php-version: ${{ matrix.php-versions }}
5377
extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, oci8, openssl, pcntl, pdo_sqlite, posix, sqlite, xml, zip
@@ -59,6 +83,7 @@ jobs:
5983

6084
- name: Set up Nextcloud
6185
run: |
86+
composer install
6287
mkdir data
6388
./occ maintenance:install --verbose --database=oci --database-name=XE --database-host=127.0.0.1 --database-port=1521 --database-user=autotest --database-pass=owncloud --admin-user admin --admin-pass admin
6489
php -f index.php
@@ -74,13 +99,13 @@ jobs:
7499
summary:
75100
permissions:
76101
contents: none
77-
runs-on: ubuntu-latest
78-
needs: phpunit-oci
102+
runs-on: ubuntu-latest-low
103+
needs: [changes, phpunit-oci]
79104

80105
if: always()
81106

82107
name: phpunit-oci-summary
83108

84109
steps:
85110
- name: Summary status
86-
run: if ${{ needs.phpunit-oci.result != 'success' }}; then exit 1; fi
111+
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-oci.result != 'success' }}; then exit 1; fi

0 commit comments

Comments
 (0)