name: PHPunit

on: [push, pull_request]

jobs:
    serendipity_hq:
        runs-on: ${{ matrix.os }}
        strategy:
            fail-fast: false
            matrix:
                os: [ubuntu-latest]
                php: ['7.4']
        name: PHP ${{ matrix.php }} on ${{ matrix.os }}
        steps:
            - name: Checkout
              uses: actions/checkout@v2

            - name: Setup PHP
              uses: shivammathur/setup-php@v1
              with:
                  php-version: ${{ matrix.php }}
                  coverage: pcov
                  tools: prestissimo, phive
                  extensions: intl

            - name: Install Composer deps
              run: |
                  composer update --no-interaction --no-suggest

            - name: Install Phive deps
              run: |
                  phive install --trust-gpg-keys E82B2FB314E9906E,CF1A108D0E7AE720,4AA394086372C20A

            - name: Run PHPunit
              run: |
                  ./tools/phpunit --verbose --debug
                  ./tools/php-coveralls -v
              env:
                  SYMFONY_DEPRECATIONS_HELPER: weak_vendors
                  COVERALLS_RUN_LOCALLY: 1

name: PHPunit

on: [push, pull_request]

jobs:
    serendipity_hq:
        runs-on: ${{ matrix.os }}
        strategy:
            fail-fast: false
            matrix:
                os: [ubuntu-latest]
                php: ['7.4']
        name: PHP ${{ matrix.php }} on ${{ matrix.os }}
        steps:
            - name: Checkout
              uses: actions/checkout@v2

            - name: Setup PHP
              uses: shivammathur/setup-php@v1
              with:
                  php-version: ${{ matrix.php }}
                  coverage: pcov
                  tools: prestissimo, phive
                  extensions: intl

            - name: Install Composer deps
              run: |
                  composer update --no-interaction --no-suggest

            - name: Install Phive deps
              run: |
                  phive install --trust-gpg-keys E82B2FB314E9906E,CF1A108D0E7AE720,4AA394086372C20A

            - name: Run PHPunit
              run: |
                  ./tools/phpunit --verbose --debug
                  ./tools/php-coveralls -v
              env:
                  SYMFONY_DEPRECATIONS_HELPER: weak_vendors
                  COVERALLS_RUN_LOCALLY: 1
                  COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

Set the `COVERALLS_REPO_TOKEN` env var.
Set the `COVERALLS_REPO_TOKEN` env var.
