feat: Add options at the publish level of the gps sender (#24) #104
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: GPS Messenger Bundle CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: PHP ${{ matrix.php-version }} Sf ${{ matrix.symfony-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - php-version: 8.2 | |
| symfony-version: 7.2.* | |
| - php-version: 8.3 | |
| symfony-version: 7.2.* | |
| - php-version: 8.4 | |
| symfony-version: 7.2.* | |
| steps: | |
| - name: "Checkout" | |
| uses: actions/checkout@v4 | |
| - name: "Setup PHP" | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: composer:v2 | |
| - name: Validate composer.json | |
| run: composer validate | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}-${{ matrix.symfony-version }} | |
| restore-keys: | | |
| composer-${{ runner.os }}-${{ matrix.php-version }}- | |
| - name: Install dependencies | |
| env: | |
| SYMFONY_REQUIRE: ${{ matrix.symfony-version }} | |
| if: steps.composer-cache.outputs.cache-hit != 'true' | |
| run: composer update --prefer-dist --no-progress --no-ansi --no-interaction --no-scripts | |
| - name: Run unit tests | |
| run: vendor/bin/phpunit | |
| - name: Run style tests | |
| run: vendor/bin/ecs check -vv | |
| - name: Run static analyse phpstan | |
| run: vendor/bin/phpstan analyse --error-format=github | |
| - name: Run static analyse psalm | |
| run: vendor/bin/psalm --php-version=${{ matrix.php-version }} |