Skip to content

Commit

Permalink
Add lint ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
gordalina committed Jul 17, 2024
1 parent cb56d5a commit f85e0c6
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f85e0c6

Please sign in to comment.