-
Notifications
You must be signed in to change notification settings - Fork 35
51 lines (47 loc) · 1.22 KB
/
ci.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
47
48
49
50
51
name: PHP Composer
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
API_KEY: ${{ secrets.API_KEY }}
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.1.27', '7.2.16', '7.3.3', '7.4.25' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Validate composer.json and composer.lock
run: |
sudo composer self-update
- run: |
composer install --prefer-dist --no-progress
- name: siftPhpTest
run: |
composer exec phpunit -v
run-integration-tests-php74:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup php74
uses: shivammathur/setup-php@v2
with:
php-version: '7.4.25'
- run: |
composer install --prefer-dist --no-progress
- run: |
php test_integration_app/main.php