Upgrade to google/cloud-pubsub v2 #52
Workflow file for this run
This file contains 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: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
php-version: | |
- '8.2' | |
- '8.3' | |
platform: [ubuntu-latest] | |
name: PHP ${{ matrix.php-version }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: nanasess/setup-php@master | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Validate composer.json | |
run: composer validate | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Install dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: composer install --prefer-dist --no-progress --no-suggest --no-ansi --no-interaction --no-scripts | |
- name: Run style tests | |
run: vendor/bin/ecs check -vv | |
- name: Run static analyse tests | |
run: vendor/bin/psalm --php-version=${{ matrix.php-version }} | |
- name: Run unit tests | |
run: vendor/bin/phpunit |