Skip to content
Merged
Show file tree
Hide file tree
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
93 changes: 47 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run.
# Generated by: horde-components dev-main
# Template version: 1.5.0
# Generated: 2026-06-25 12:41:51 UTC
#
# DO NOT EDIT - Regenerate with: horde-components ci init
#
# This workflow uses the runner's preinstalled PHP 8.3 for bootstrap.
# horde-components will install additional PHP versions as needed.

on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches:
- master
- maintaina-composerfixed
- FRAMEWORK_6_0
branches: [ FRAMEWORK_6_0 ]
pull_request:
branches:
- master
- maintaina-composerfixed
- FRAMEWORK_6_0


# Allows you to run this workflow manually from the Actions tab
branches: [ FRAMEWORK_6_0 ]
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-22.04']
php-versions: ['8.2', '8.3', '8.4', 'latest']
phpunit-versions: ['latest']
ci:
name: CI
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: write
checks: write

steps:
- name: Setup github ssh key
run: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa github.com > ~/.ssh/known_hosts
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2.37.1
with:
php-version: ${{ matrix.php-versions }}
extensions: bcmath, ctype, curl, dom, gd, gettext, iconv, imagick, json, ldap, mbstring, mysql, opcache, openssl, pcntl, pdo, posix, redis, soap, sockets, sqlite, tokenizer, xmlwriter
ini-values: post_max_size=512M, max_execution_time=360
coverage: xdebug
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }}, composer:v2
- name: Setup Github Token as composer credential
run: composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: COMPOSER_ROOT_VERSION=dev-FRAMEWORK_6_0 composer install
- name: install horde/xml_wbxml ^3
run: composer require horde/xml_wbxml ^3
- name: install horde/http ^3
run: composer require horde/http ^3
- name: run phpunit
run: phpunit
- name: Checkout code
uses: actions/checkout@v5

- name: Cache horde-components.phar
uses: actions/cache@v5
with:
path: /tmp/horde-ci/bin
key: components-phar-${{ hashFiles('bin/ci-bootstrap.sh') }}

- name: Cache QC tools (PHPUnit, PHPStan, PHP-CS-Fixer)
uses: actions/cache@v5
with:
path: /tmp/horde-ci/tools
key: ci-tools-${{ hashFiles('.horde.yml') }}

- name: Run CI
run: bash bin/ci-bootstrap.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPONENTS_PHAR_URL: ${{ vars.COMPONENTS_PHAR_URL || 'https://github.com/horde/components/releases/latest/download/horde-components.phar' }}

- name: Upload test results
if: always()
uses: actions/upload-artifact@v5
with:
name: ci-results-pr${{ github.event.pull_request.number || github.run_number }}-${{ github.sha }}
path: |
/tmp/horde-ci/lanes/*/ActiveSync/build/*.json
retention-days: 30
69 changes: 0 additions & 69 deletions .github/workflows/phpdoc.yml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/release.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/update-satis.yml

This file was deleted.

74 changes: 72 additions & 2 deletions .horde.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ list: dev
type: library
homepage: https://www.horde.org/libraries/Horde_ActiveSync
authors:
-
name: Michael J Rubinsky
- name: Michael J Rubinsky
user: mrubinsk
email: mrubinsk@horde.org
active: true
Expand Down Expand Up @@ -67,3 +66,74 @@ keywords:
- sync
- eas
- exchange
ci-platform:
'8.0':
- php: '>=7.2'
- composer-plugin-api: ^2.2.0
- ext-bcmath
- ext-ctype
- ext-dom
- ext-hash
- ext-pcre
- ext-simplexml
- ext-spl
'8.1':
- php: '>=7.2'
- composer-plugin-api: ^2.2.0
- ext-bcmath
- ext-ctype
- ext-dom
- ext-hash
- ext-pcre
- ext-simplexml
- ext-spl
'8.2':
- php: '>=7.2'
- composer-plugin-api: ^2.2.0
- ext-bcmath
- ext-ctype
- ext-dom
- ext-hash
- ext-pcre
- ext-simplexml
- ext-spl
'8.3':
- php: '>=7.2'
- composer-plugin-api: ^2.2.0
- ext-bcmath
- ext-ctype
- ext-dom
- ext-hash
- ext-pcre
- ext-simplexml
- ext-spl
'8.4':
- php: '>=7.2'
- composer-plugin-api: ^2.2.0
- ext-bcmath
- ext-ctype
- ext-dom
- ext-hash
- ext-pcre
- ext-simplexml
- ext-spl
'8.5':
- php: '>=7.2'
- composer-plugin-api: ^2.2.0
- ext-bcmath
- ext-ctype
- ext-dom
- ext-hash
- ext-pcre
- ext-simplexml
- ext-spl
'8.6':
- php: '>=7.2'
- composer-plugin-api: ^2.2.0
- ext-bcmath
- ext-ctype
- ext-dom
- ext-hash
- ext-pcre
- ext-simplexml
- ext-spl
Loading
Loading