Skip to content

Functional tests

Functional tests #578

Workflow file for this run

name: Functional tests
on:
pull_request_target:
branches:
- '*'
workflow_dispatch:
schedule:
- cron: '0 5 * * *'
jobs:
functional_tests:
name: "Functional Tests PHP ${{ matrix.php_version }}"
runs-on: "ubuntu-latest"
strategy:
max-parallel: 1
matrix:
php_version: [ "7.3", "7.4", "8.0", "8.1", "8.2" ]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php_version }}"
coverage: none
tools: composer:v2
- name: Install Dependencies
run: composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist
- name: "Try to get data using SDK"
run: "php ./run_checks.php"
env:
FP_PRIVATE_API_KEY: "${{ secrets.FP_PRIVATE_API_KEY }}"
FP_API_HOST: "${{ secrets.FP_API_HOST }}"
FP_VISITOR_ID: "${{ secrets.FP_VISITOR_ID }}"
FP_REQUEST_ID: "${{ secrets.FP_REQUEST_ID }}"
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@0d9c6ff1de9903da88d24c0564f6e83cb28faca9
with:
status: ${{ job.status }}
notification_title: 'PHP ${{ matrix.php_version }} SDK Functional Test has {status_message}'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}