Remove untestable combos from matrix #156
Workflow file for this run
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
PORT_LDAP: 3389 | |
PORT_LDAPS: 6363 | |
LDAP_ADMIN_PASSWORD: ${{ secrets.LDAP_ADMIN_PASSWORD }} | |
LDAP_LOG_LEVEL: 0 | |
strategy: | |
matrix: | |
# operating-system: [ubuntu-latest, windows-latest, macos-latest] | |
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3' ] | |
name: Test on ${{ matrix.php-versions }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build the docker-compose stack | |
run: docker-compose -f docker-compose.yml up -d | |
- name: Check running containers | |
run: docker ps -a | |
- name: Check logs | |
run: docker-compose logs openldap | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: ldap | |
tools: phive | |
- name: install dependencies | |
run: composer install | |
- name: install tools | |
run: composer require --dev phpunit/phpunit | |
- name: Run Unit-Tests | |
run: ./vendor/bin/phpunit --testdox | |
coverage: | |
needs: test | |
runs-on: ubuntu-latest | |
env: | |
PORT_LDAP: 3389 | |
PORT_LDAPS: 6363 | |
LDAP_ADMIN_PASSWORD: ${{ secrets.LDAP_ADMIN_PASSWORD }} | |
LDAP_LOG_LEVEL: 0 | |
continue-on-error: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build the docker-compose stack | |
run: docker-compose -f docker-compose.yml up -d | |
- name: Check running containers | |
run: docker ps -a | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.2" | |
coverage: xdebug | |
tools: phive | |
- name: install dependencies | |
run: composer install | |
- name: install tools | |
run: phive install --trust-gpg-keys 4AA394086372C20A phpunit | |
- name: run testsuite | |
run: ./tools/phpunit --testdox --colors=always --coverage-clover clover.xml | |
- name: upload to codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
files: ./clover.xml # optional | |
#flags: unittests # optional | |
#name: codecov-umbrella # optional | |
#fail_ci_if_error: true # optional (default = false) | |
#verbose: true # optional (default = false) |