Skip to content

run tests on pull requests to master branch #121

run tests on pull requests to master branch

run tests on pull requests to master branch #121

Workflow file for this run

name: SDK Tests
on:
push:
pull_request:
branches:
- master
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
max-parallel: 3
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php-versions: ['7.3', '7.4', '8.0', '8.3']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v1
- name: Check PHP Version
run: php -v
- name: Check PHP Extensions
run: php -m
- name: Check Composer Version
run: composer -V
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: composer test