setup-php/examples/blackfire-player.yml

37 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2020-02-28 17:12:17 +07:00
# GitHub Action for Blackfire Player
name: Play a Blackfire Scenario
on: [push, pull_request]
jobs:
blackfire-player:
name: Blackfire (PHP ${{ matrix.php-versions }})
# Add your Blackfire credentials securely using GitHub Secrets
env:
BLACKFIRE_SERVER_ID: ${{ secrets.BLACKFIRE_SERVER_ID }}
BLACKFIRE_SERVER_TOKEN: ${{ secrets.BLACKFIRE_SERVER_TOKEN }}
BLACKFIRE_CLIENT_ID: ${{ secrets.BLACKFIRE_CLIENT_ID }}
BLACKFIRE_CLIENT_TOKEN: ${{ secrets.BLACKFIRE_CLIENT_TOKEN }}
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
2021-12-15 18:19:10 +07:00
php-versions: ['7.4', '8.0', '8.1']
2020-02-28 17:12:17 +07:00
# blackfire-player supports PHP >= 5.5
steps:
- name: Checkout
uses: actions/checkout@v2
2021-12-15 18:19:10 +07:00
# Docs: https://github.com/shivammathur/setup-php
- name: Setup PHP
uses: shivammathur/setup-php@v2
2020-02-28 17:12:17 +07:00
with:
php-version: ${{ matrix.php-versions }}
extensions: blackfire
2021-12-15 18:19:10 +07:00
# Setup Blackfire CLI and player
tools: blackfire, blackfire-player
2020-02-28 17:12:17 +07:00
coverage: none
2021-12-15 18:19:10 +07:00
# Refer to https://blackfire.io/docs/player/index#usage
2020-02-28 17:12:17 +07:00
- name: Play the scenario
2021-12-15 18:19:10 +07:00
run: blackfire-player run scenario.bkf