Skip to content
Closed
Changes from all commits
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
60 changes: 54 additions & 6 deletions .github/workflows/integration-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,46 @@ jobs:
- 'composer.lock'
- 'core/shipped.json'

integration-sqlite:
init:
runs-on: ubuntu-latest

needs: changes
if: needs.changes.outputs.src != 'false'

steps:
- name: Checkout server
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
submodules: true

- name: Set up php 8.4
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc #v2.37.1
timeout-minutes: 5
with:
php-version: '8.4'
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, imagick, intl, json, ldap, libxml, mbstring, openssl, pcntl, posix, redis, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
coverage: none
ini-file: development
ini-values: disable_functions=""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: composer install

- name: Save context
uses: buildjet/cache/save@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
with:
key: integration-sqlite-context-${{ github.run_id }}
path: ./

integration-sqlite:
runs-on: ubuntu-latest

needs: [changes, init]
if: needs.changes.outputs.src != 'false' && needs.init.result == 'success'

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -98,8 +132,16 @@ jobs:
SLAPD_ADDITIONAL_MODULES: memberof

steps:
- name: Restore context
id: cache
uses: buildjet/cache/restore@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
with:
key: integration-sqlite-context-${{ github.run_id }}
path: ./

- name: Checkout server
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: steps.cache.outputs.cache-hit != 'true'
with:
persist-credentials: false
submodules: true
Expand Down Expand Up @@ -144,9 +186,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up dependencies
run: |
composer install
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: composer install

- name: Set up Talk dependencies
if: ${{ matrix.test-suite == 'videoverification_features' }}
Expand Down Expand Up @@ -185,12 +227,18 @@ jobs:
permissions:
contents: none
runs-on: ubuntu-latest-low
needs: [changes, integration-sqlite]
needs: [changes, init, integration-sqlite]

if: always()

name: integration-sqlite-summary

steps:
- name: Summary status
run: if ${{ needs.changes.outputs.src != 'false' && needs.integration-sqlite.result != 'success' }}; then exit 1; fi
run: if ${{ needs.changes.outputs.src != 'false' && (needs.init.result != 'success' || needs.integration-sqlite.result != 'success') }}; then exit 1; fi

- name: Delete cache
uses: buildjet/cache-delete@7184288b8396c4492a56728c47dd286fbd1e96ae # v1
if: needs.init.result == 'success' && needs.integration-sqlite.result == 'success'
with:
cache_key: integration-sqlite-context-${{ github.run_id }}
Loading