diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fd8cbf..947bbfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,14 +11,44 @@ on: - "*" jobs: + lint: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@master + with: + php-version: 8.0 + extensions: mbstring, pcov + coverage: pcov + + - name: Get Composer Cache Directory + id: composer-cache + run: echo "::set-output name=dir::$(composer config cache-files-dir)" + + - name: Cache dependencies + uses: actions/cache@v1 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }} + restore-keys: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }} + + - name: Install Dependencies + run: composer install --prefer-dist --no-interaction + + - name: Run php-cs-fixer + run: bin/php-cs-fixer fix --verbose --diff --dry-run Mixpanel/ + test: runs-on: ${{ matrix.operating-system }} strategy: max-parallel: 15 matrix: operating-system: [ubuntu-20.04, macOS-10.15] - php-versions: ["8.0", "8.1"] - symfony-versions: ["5.4", "6.0"] + php-versions: ["8.0", "8.1", "8.2", "8.3"] + symfony-versions: ["5.4", "6.4"] name: Test Symfony ${{ matrix.symfony-versions }} with PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }} steps: - name: Checkout