-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
73 changed files
with
4,541 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
|
||
name: Interoperability | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: ['**'] | ||
paths-ignore: | ||
- '**.md' | ||
- '**.yml' | ||
pull_request: | ||
branches: [master, release-*] | ||
paths-ignore: | ||
- '**.md' | ||
- '**.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
edugain: | ||
name: "Interoperability tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}" | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['8.2'] | ||
|
||
steps: | ||
- name: Setup PHP, with composer and extensions | ||
# https://github.com/shivammathur/setup-php | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ctype, date, dom, hash, mbstring, openssl, pcre, spl, xml | ||
tools: composer:v2 | ||
ini-values: error_reporting=E_ALL, memory_limit=-1 | ||
coverage: none | ||
|
||
- name: Setup problem matchers for PHP | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Set git to use LF | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: $(composer config cache-files-dir) | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Install Composer dependencies | ||
run: composer install --no-progress --prefer-dist --optimize-autoloader | ||
|
||
- name: Get current date | ||
id: date | ||
run: | | ||
echo "{date}={$(date +'%Y-%m-%d')}" >> "$GITHUB_STATE" | ||
- name: Cache metadata | ||
id: cache-metadata | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/metadata | ||
key: ${{ runner.os }}-metadata-${{ env.date }} | ||
restore-keys: ${{ runner.os }}-metadata- | ||
|
||
- name: Run unit tests | ||
run: | | ||
./vendor/bin/phpunit -c phpunit-interoperability.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" bootstrap="./tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false"> | ||
<testsuites> | ||
<testsuite name="Test Suite - Interoperability"> | ||
<directory>./tests/InterOperability</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
Oops, something went wrong.