-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (43 loc) · 1.47 KB
/
functional.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 }}