Merge pull request #1107 from nextcloud-releases/master #1657
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: Integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- production | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['7.3', '7.4', '8.0'] | |
name: php | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set up php ${{ matrix.php-versions }} | |
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: none | |
- name: Install composer | |
run: composer install | |
- name: Start webserver | |
run: php -S localhost:8888 index.php & | |
- name: Run behat | |
run: cd tests/integration && ../../vendor/bin/behat --colors . | |
summary: | |
runs-on: ubuntu-latest | |
needs: integration | |
if: always() | |
name: integration-summary | |
steps: | |
- name: Summary status | |
run: if ${{ needs.integration.result != 'success' && needs.integration.result != 'skipped' }}; then exit 1; fi |