-
Notifications
You must be signed in to change notification settings - Fork 150
31 lines (31 loc) · 846 Bytes
/
test.yaml
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
name: Tests
on: [push, pull_request]
jobs:
php:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions:
- '5.6'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json
coverage: xdebug
- name: Install Composer dependencies
run: composer update -n
- name: Run Tests
run: |
export CLOUDINARY_URL=$(bash tools/get_test_cloud.sh);
echo cloud_name: "$(echo $CLOUDINARY_URL | cut -d'@' -f2)"
vendor/bin/simple-phpunit