Translate the new Override Groups string, fix the old repo path #2731
This file contains hidden or 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: Unit and Integration Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - stable* | |
| schedule: | |
| - cron: "0 2 * * *" | |
| env: | |
| APP_NAME: auto_groups | |
| PHP_EXTENSIONS: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, xdebug, zip, gd | |
| CACHE_KEY: cache-v3 # can be any string, change to clear the extension cache. | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.experimental }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-versions: ["8.2", "8.3", "8.4"] | |
| databases: ["sqlite"] | |
| server-versions: ["stable32", "stable33", "stable34", "stable35"] | |
| experimental: [false] | |
| exclude: | |
| # NC35 requires PHP 8.3, so this combination cannot be installed. | |
| # See lib/versioncheck.php on the server branch for the bounds. | |
| - php-versions: "8.2" | |
| server-versions: "stable35" | |
| include: | |
| - php-versions: "8.4" | |
| databases: sqlite | |
| server-versions: master | |
| experimental: true | |
| name: test-php${{ matrix.php-versions }}-${{ matrix.databases }}-${{ matrix.server-versions }} | |
| steps: | |
| - name: Checkout Nextcloud Server | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: nextcloud/server | |
| ref: ${{ matrix.server-versions }} | |
| fetch-depth: 2 | |
| # Server keeps 3rdparty as a submodule. This replaces a hand-rolled | |
| # `git submodule update` that reused checkout's persisted credentials | |
| # via http.<url>.extraheader - a config key checkout no longer writes. | |
| submodules: recursive | |
| - name: Checkout app | |
| uses: actions/checkout@v7 | |
| with: | |
| path: apps/${{ env.APP_NAME }} | |
| fetch-depth: 2 | |
| - name: Setup cache environment | |
| id: cache-env | |
| uses: shivammathur/cache-extensions@v1 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| extensions: ${{ env.PHP_EXTENSIONS }} | |
| key: ${{ env.CACHE_KEY }} | |
| - name: Cache extensions | |
| uses: actions/cache@v6 | |
| with: | |
| path: ${{ steps.cache-env.outputs.dir }} | |
| key: ${{ steps.cache-env.outputs.key }} | |
| restore-keys: ${{ steps.cache-env.outputs.key }} | |
| - name: Set up php ${{ matrix.php-versions }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| tools: phpunit:9.6.9 | |
| extensions: ${{ env.PHP_EXTENSIONS }} | |
| coverage: xdebug | |
| - 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 up Nextcloud | |
| run: | | |
| mkdir data | |
| ./occ maintenance:install --verbose --database=${{ matrix.databases }} --database-name=nextcloud --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password | |
| ./occ app:enable ${{ env.APP_NAME }} | |
| - name: Check Syntax | |
| working-directory: apps/${{ env.APP_NAME }} | |
| run: composer run lint | |
| - name: Unit and Integration Tests | |
| working-directory: apps/${{ env.APP_NAME }} | |
| run: phpunit -c tests/phpunit.xml | |
| env: | |
| TRAVIS: true | |
| - name: Codecov.io Upload | |
| working-directory: apps/${{ env.APP_NAME }} | |
| run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.server-versions }} -f ./tests/coverage.xml |