Skip to content

[INTER-544] Revisit pre-release #685

[INTER-544] Revisit pre-release

[INTER-544] Revisit pre-release #685

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@v4
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 }}"
report-status:
needs: tests
if: always()
uses: fingerprintjs/dx-team-toolkit/.github/workflows/report-workflow-status.yml@v1
with:
notification_title: 'PHP SDK Tests has {status_message}'
job_status: ${{ needs.tests.result }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}