[PBE-0] change user to user_id as part of payload #197
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: build | |
on: [pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: 🧪 Test & lint | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 1 | |
matrix: | |
php-versions: ['8.1', '8.2', '8.3'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # gives the commit message linter access to all previous commits | |
- name: Commit lint | |
if: ${{ matrix.php-versions == '8.1' }} | |
uses: wagoid/commitlint-github-action@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: ast, mbstring, intl | |
ini-values: post_max_size=256M, max_execution_time=180 | |
tools: composer | |
- name: Install dependencies | |
run: composer install | |
- name: Format | |
if: ${{ matrix.php-versions == '8.1' }} | |
run: vendor/bin/php-cs-fixer fix -v --dry-run --stop-on-violation | |
- name: Quality | |
if: ${{ matrix.php-versions == '8.1' }} | |
run: vendor/bin/phan --no-progress-bar | |
- name: Test | |
env: | |
STREAM_KEY: ${{ secrets.STREAM_API_KEY }} | |
STREAM_SECRET: ${{ secrets.STREAM_API_SECRET }} | |
run: vendor/bin/phpunit --coverage-text |